File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7878 run : npm run test -- --coverage && cat ./coverage/lcov.info
7979 env :
8080 CI : true
81+ DISABLE_MOCKED_WARNING : true
8182 - name : Coveralls parallel
8283 uses : coverallsapp/github-action@master
8384 with :
Original file line number Diff line number Diff line change 1+ if ( ! process . env . DISABLE_MOCKED_WARNING ) {
2+ console . warn (
3+ '\n`mocked` util function is now deprecated and has been moved to Jest repository,' +
4+ ' see https://github.com/facebook/jest/pull/12089. In `ts-jest` v28.0.0, `mocked` function will be completely removed.' +
5+ ' Users are encouraged to use to Jest v27.4.0 or above to have `mocked` function available from `jest-mock`. ' +
6+ 'One can disable this warning by setting environment variable process.env.DISABLE_MOCKED_WARNING=true\n' ,
7+ )
8+ }
9+
110// eslint-disable-next-line @typescript-eslint/no-explicit-any
211export type MockableFunction = ( ...args : any [ ] ) => any
312export type MethodKeysOf < T > = { [ K in keyof T ] : T [ K ] extends MockableFunction ? K : never } [ keyof T ]
You can’t perform that action at this time.
0 commit comments