File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 11const 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' )
38
4- module . exports = {
9+ const projectConfig = {
510 ...baseConfig ,
611 rootDir : path . join ( __dirname , '..' ) ,
712 displayName : 'dom' ,
@@ -12,3 +17,5 @@ module.exports = {
1217 ] ,
1318 testEnvironment : 'jest-environment-jsdom' ,
1419}
20+
21+ module . exports = projectConfig
Original file line number Diff line number Diff line change 11const 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' )
38
4- module . exports = {
9+ const projectConfig = {
510 ...baseConfig ,
611 rootDir : path . join ( __dirname , '..' ) ,
712 displayName : 'node' ,
@@ -13,3 +18,5 @@ module.exports = {
1318 ] ,
1419 testMatch : [ '**/__node_tests__/**.js' ] ,
1520}
21+
22+ module . exports = projectConfig
You can’t perform that action at this time.
0 commit comments