Skip to content

Commit 2d91653

Browse files
committed
fix(root pkg-common): coverage data for global was not found
fix an issue related to jestjs/jest#6563
1 parent 69fc038 commit 2d91653

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: config/jest/jest.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const commonConfig = require('../../packages/narr-material-ui-common');
22

33
module.exports = commonConfig.getJestConfig({
4-
testRootDir: './packages',
4+
testRootDir: 'packages',
55
tsConfigFile: './tsconfig.json',
6-
collectCoverageFromRootDir: './packages/**/src',
6+
collectCoverageFromRootDir: 'packages/**/src',
77
});

Diff for: config/jest/jest.config.prod.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ let config;
44
const target = process.env.JEST_TARGET;
55
if (target === 'core') {
66
config = {
7-
testRootDir: './packages/narr-material-ui-core',
7+
testRootDir: 'packages/narr-material-ui-core',
88
tsConfigFile: './tsconfig.json',
9-
collectCoverageFromRootDir: './packages/narr-material-ui-core/src',
9+
collectCoverageFromRootDir: 'packages/narr-material-ui-core/src',
1010
coverageDirectory: './docs/narr-material-ui-core/coverage',
1111
htmlReporterOutputPath:
1212
'./docs/narr-material-ui-core/test-result/index.html',

Diff for: packages/narr-material-ui-common/config/jest/jest.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = ({
22
rootDir = '../../',
3-
testRootDir = './src',
4-
collectCoverageFromRootDir = './src',
3+
testRootDir = 'src',
4+
collectCoverageFromRootDir = 'src',
55
tsConfigFile = './node_modules/narr-material-ui-common/config/tsconfig.json',
66
} = {}) => {
77
const config = {

0 commit comments

Comments
 (0)