File tree 2 files changed +18
-4
lines changed
2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' )
2
- const baseConfig = require ( 'kcd-scripts/jest' )
2
+ const {
3
+ // global config options that would trigger warnings in project configs
4
+ collectCoverageFrom,
5
+ watchPlugins,
6
+ ...baseConfig
7
+ } = require ( 'kcd-scripts/jest' )
3
8
4
- module . exports = {
9
+ const projectConfig = {
5
10
...baseConfig ,
6
11
rootDir : path . join ( __dirname , '..' ) ,
7
12
displayName : 'dom' ,
@@ -12,3 +17,5 @@ module.exports = {
12
17
] ,
13
18
testEnvironment : 'jest-environment-jsdom' ,
14
19
}
20
+
21
+ module . exports = projectConfig
Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' )
2
- const baseConfig = require ( 'kcd-scripts/jest' )
2
+ const {
3
+ // global config options that would trigger warnings in project configs
4
+ collectCoverageFrom,
5
+ watchPlugins,
6
+ ...baseConfig
7
+ } = require ( 'kcd-scripts/jest' )
3
8
4
- module . exports = {
9
+ const projectConfig = {
5
10
...baseConfig ,
6
11
rootDir : path . join ( __dirname , '..' ) ,
7
12
displayName : 'node' ,
@@ -13,3 +18,5 @@ module.exports = {
13
18
] ,
14
19
testMatch : [ '**/__node_tests__/**.js' ] ,
15
20
}
21
+
22
+ module . exports = projectConfig
You can’t perform that action at this time.
0 commit comments