File tree 3 files changed +8
-17
lines changed
3 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 52
52
"@commitlint/cli" : " ^13.1.0" ,
53
53
"@commitlint/config-conventional" : " ^13.1.0" ,
54
54
"@commitlint/prompt" : " ^13.1.0" ,
55
- "@jest/globals" : " ^27.4.6" ,
56
55
"@types/jest" : " ^27.4.0" ,
57
56
"@typescript-eslint/eslint-plugin" : " ^5.10.0" ,
58
57
"@typescript-eslint/parser" : " ^5.4.0" ,
Original file line number Diff line number Diff line change 1
- import * as utilsExports from 'ts-jest'
1
+ import * as utilsExports from 'ts-jest/utils '
2
2
import * as testExports from '../test' // eslint-disable-line import/namespace
3
3
4
- const toForwardTsJest = [ 'pathsToModuleNameMapper' , 'createJestPreset' ]
5
-
6
4
describe ( 're-exporting ts-jest utils' , ( ) => {
7
- test . each (
8
- Object . entries ( utilsExports ) . filter ( ( [ key ] ) =>
9
- toForwardTsJest . includes ( key ) ,
10
- ) ,
11
- ) ( 'forwards `%s` export' , ( exportName , exportValue ) => {
12
- expect ( testExports ) . toHaveProperty ( exportName , exportValue )
13
- } )
5
+ test . each ( Object . entries ( utilsExports ) . filter ( ( [ key ] ) => key !== 'default' ) ) (
6
+ 'forwards `%s` export' ,
7
+ ( exportName , exportValue ) => {
8
+ expect ( testExports ) . toHaveProperty ( exportName , exportValue )
9
+ } ,
10
+ )
14
11
} )
Original file line number Diff line number Diff line change 1
- import { jest } from '@jest/globals'
2
- export { pathsToModuleNameMapper , createJestPreset } from 'ts-jest'
3
-
4
- const { mocked} = jest
5
-
6
- export { mocked }
1
+ export * from 'ts-jest/utils'
You can’t perform that action at this time.
0 commit comments