Ts-jest: Extract mocked function in a different package

Created on 30 Mar 2019  路  10Comments  路  Source: kulshekhar/ts-jest

Hello 馃憢

I have been using babel to compile my typescript projects more and more lately, and the only reason why I am still installing ts-jest is because of the utils/mocked function.

Would you consider extracting this util into its own package?

Question

Most helpful comment

Yeah, works for me! Looks useful

All 10 comments

Maybe it can be exported under ts-jest/utils ? PR is welcome :)

cc @geewee @kulshekhar

I think it's an excellent idea to either export it separately or extract it to its own package. PR's very welcome (or links to the new package, which we will then add to the docs.)

Would it be worth proposing to the Jest team to add it to the core package, especially now that Jest is written in TypeScript, or to https://github.com/jest-community?

might be worth a shot

cc @thymikee do you think this can be in jest repo ?

@SimenB what do you think? The question is whether we should include these utils in Jest core: https://github.com/kulshekhar/ts-jest/blob/master/src/util/testing.ts

Personally I'm fine with sticking those to jest-mock and make them available through type exports.

Yeah, works for me! Looks useful

@thymikee @SimenB I guess I will close this issue as jest will take care of it ?

@ahnpnl let's create an issue for this in Jest first, shall we?

Close as Feature Request was created for Jest

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Vinnl picture Vinnl  路  3Comments

stangerjm picture stangerjm  路  4Comments

bySabi picture bySabi  路  4Comments

RiJung picture RiJung  路  4Comments

qm3ster picture qm3ster  路  3Comments