File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
- import * as utilsExports from 'ts-jest/utils '
1
+ import * as utilsExports from 'ts-jest'
2
2
import * as testExports from '../test' // eslint-disable-line import/namespace
3
3
4
+ const toForwardTsJest = [ 'pathsToModuleNameMapper' , 'createJestPreset' ]
5
+
4
6
describe ( 're-exporting ts-jest utils' , ( ) => {
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
- )
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
+ } )
11
14
} )
Original file line number Diff line number Diff line change 1
- export * from 'ts-jest/utils '
1
+ export { pathsToModuleNameMapper , createJestPreset } from 'ts-jest'
You can’t perform that action at this time.
0 commit comments