File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- // const esModules = ['@monkvision/test-utils', 'ky'].join('|');
1
+ const esModules = [ '@monkvision/test-utils' , 'ky' ] . join ( '|' ) ;
2
2
3
3
module . exports = ( options ) => ( {
4
4
rootDir : './' ,
5
- roots : [ '<rootDir>' , '<rootDir>/../../configs/test-utils/src/__mocks__' ] ,
5
+ roots : options . monorepo ? [ '<rootDir>' , '<rootDir>/../../configs/test-utils/src/__mocks__' ] : [ '<rootDir> '] ,
6
6
preset : 'ts-jest' ,
7
7
testEnvironment : 'node' ,
8
8
testMatch : [ '**/test/**/*.test.ts' ] ,
@@ -11,7 +11,7 @@ module.exports = (options) => ({
11
11
collectCoverageFrom : [
12
12
'src/**/*.ts' ,
13
13
] ,
14
- // transformIgnorePatterns: options?.monorepo ? [] : [`node_modules/(?!${esModules})`],
14
+ transformIgnorePatterns : options ?. monorepo ? [ ] : [ `node_modules/(?!${ esModules } )` ] ,
15
15
coverageThreshold : {
16
16
global : {
17
17
branches : 60 ,
You can’t perform that action at this time.
0 commit comments