File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 78
78
run : npm run test -- --coverage && cat ./coverage/lcov.info
79
79
env :
80
80
CI : true
81
+ DISABLE_MOCKED_WARNING : true
81
82
- name : Coveralls parallel
82
83
uses : coverallsapp/github-action@master
83
84
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
+
1
10
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2
11
export type MockableFunction = ( ...args : any [ ] ) => any
3
12
export 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