File tree Expand file tree Collapse file tree 7 files changed +3288
-97
lines changed Expand file tree Collapse file tree 7 files changed +3288
-97
lines changed Original file line number Diff line number Diff line change 1+ const configurator = require ( './jest.base-config' ) ;
2+
3+ const config = configurator ( {
4+ coverageReporters : [
5+ 'lcov' ,
6+ '@lcov-viewer/istanbul-report' ,
7+ ] ,
8+ moduleNameMapper : {
9+ '^react$' : 'preact/compat' ,
10+ '^react-dom/test-utils$' : 'preact/test-utils' ,
11+ '^react-dom$' : 'preact/compat' ,
12+ '^react/jsx-runtime$' : 'preact/jsx-runtime' ,
13+ } ,
14+ coveragePathIgnorePatterns : [
15+ '/node_modules/' ,
16+ '/mocks/' ,
17+ ] ,
18+ } ) ;
19+
20+ module . exports = config ;
Original file line number Diff line number Diff line change 1+ {
2+ "npmClient" : " yarn" ,
3+ "packages" : [
4+ " packages/*" ,
5+ " packages/demo/*"
6+ ],
7+ "version" : " 1.0.0" ,
8+ "useWorkspaces" : true
9+ }
Original file line number Diff line number Diff line change 88 " packages/*" ,
99 " packages/demo/*"
1010 ],
11+ "scripts" : {
12+ "test" : " lerna run test --stream" ,
13+ "version:update" : " lerna version --no-push"
14+ },
1115 "devDependencies" : {
1216 "@babel/cli" : " ^7.15.7" ,
1317 "@babel/core" : " ^7.15.8" ,
2630 "jest" : " ^27.3.0" ,
2731 "jest-raw-loader" : " ^1.0.1" ,
2832 "json-minimizer-webpack-plugin" : " ^3.1.0" ,
33+ "lerna" : " ^4.0.0" ,
2934 "less" : " ^4.1.2" ,
3035 "less-loader" : " ^10.2.0" ,
3136 "mini-css-extract-plugin" : " ^2.4.2" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const configurator = require('../../jest.base-config');
33const config = configurator ( {
44 coverageReporters : [
55 'lcov' ,
6+ 'json' ,
67 '@lcov-viewer/istanbul-report' ,
78 ] ,
89 moduleNameMapper : {
Original file line number Diff line number Diff line change 11const configurator = require ( '../../jest.base-config' ) ;
2- const path = require ( 'path' ) ;
32
43const config = configurator ( {
54 coverageReporters : [
65 'lcov' ,
6+ 'json' ,
77 '@lcov-viewer/istanbul-report'
88 ] ,
99} ) ;
Original file line number Diff line number Diff line change 1212 "react" : " ^17.0.2"
1313 },
1414 "devDependencies" : {
15- "@testing-library/react" : " ^12.1.2" ,
1615 "@lcov-viewer/istanbul-report" : " ^1.0.0" ,
16+ "@testing-library/react" : " ^12.1.2" ,
1717 "react" : " ^17.0.2" ,
1818 "react-dom" : " ^17.0.2"
1919 }
You can’t perform that action at this time.
0 commit comments