Skip to content

Commit a009d1f

Browse files
test: fix
1 parent eb44d8b commit a009d1f

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ yarn-error.log
3333
# Jest Coverage
3434
coverage
3535
.nyc_output
36+
.jest_coverage
3637

3738
# Yeoman file
3839
.yo-rc.json

.nycrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
"extension": [".ts", ".js"],
44
"include": ["packages/*/src/**/*.ts", "packages/*/lib/**/*.js"],
55
"require": ["source-map-support/register"],
6-
"reporter": ["text", "html", "lcov"],
6+
"reporter": ["lcov"],
77
"sourceMap": true,
88
"clean": false,
9+
"temp-dir": "./.nyc_output",
910
"exclude-after-remap": false
1011
}

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
testEnvironment: "node",
33
collectCoverageFrom: ["packages/*/src/**/*.ts"],
4-
coverageDirectory: ".nyc_output",
4+
coverageDirectory: ".jest_coverage",
55
coverageReporters: ["json"],
66
transform: {
77
"^.+\\.tsx?$": [

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"test": "npm run test:base",
4141
"test:base": "node --experimental-vm-modules ./node_modules/jest-cli/bin/jest",
4242
"test:smoketests": "nyc node smoketests",
43-
"test:coverage": "cross-env NODE_OPTIONS='--import data:text/javascript;base64,aW1wb3J0IHsgcmVnaXN0ZXIgfSBmcm9tICJub2RlOm1vZHVsZSI7IGltcG9ydCB7IHBhdGhUb0ZpbGVVUkwgfSBmcm9tICJub2RlOnVybCI7IHJlZ2lzdGVyKCJAaXN0YW5idWxqcy9lc20tbG9hZGVyLWhvb2siLCBwYXRoVG9GaWxlVVJMKCIuLyIpKTs=' nyc npm run test:base",
43+
"test:coverage": "cross-env NODE_OPTIONS='--import data:text/javascript;base64,aW1wb3J0IHsgcmVnaXN0ZXIgfSBmcm9tICJub2RlOm1vZHVsZSI7IGltcG9ydCB7IHBhdGhUb0ZpbGVVUkwgfSBmcm9tICJub2RlOnVybCI7IHJlZ2lzdGVyKCJAaXN0YW5idWxqcy9lc20tbG9hZGVyLWhvb2siLCBwYXRoVG9GaWxlVVJMKCIuLyIpKTs=' nyc npm run test:base -- --coverage && npm run coverage",
44+
"coverage": "nyc merge ./.nyc_output ./.nyc_output/merged-output.json && nyc merge ./.jest_coverage ./.nyc_output/merged-jest.json && nyc report --temp-dir ./.nyc_output",
4445
"update:docs": "node ./scripts/update-docs",
4546
"version": "node ./node_modules/.bin/changeset version && node ./scripts/sync-changelogs.js",
4647
"release": "npm run build && node ./node_modules/.bin/changeset publish",

0 commit comments

Comments
 (0)