Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Nov 4, 2022
1 parent a059b49 commit 2e43cd2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/cmd/node-test-cov.js
Expand Up @@ -113,7 +113,6 @@ class NodeTestCovCommand extends NodeTestCommand {
if (passthroughArgs) {
covArgs = covArgs.concat(passthroughArgs.split(' '));
}
console.log(this[EXCLUDES]);
for (const exclude of this[EXCLUDES]) {
covArgs.push('-x');
covArgs.push(exclude);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -84,7 +84,7 @@
"lint": "eslint .",
"pkgfiles": "node bin/egg-bin.js pkgfiles",
"test": "npm run lint -- --fix && npm run test-local",
"test-local": "node bin/egg-bin.js test -t 3600000",
"test-local": "node bin/egg-bin.js test -t 120000 --parallel",
"cov": "c8 -r lcov -r text-summary npm run test-local",
"ci-test-only": "npm run test-local -- test/lib/cmd/cov.test.js",
"ci": "npm run lint && npm run pkgfiles -- --check && npm run ci-test-only && npm run test-local",
Expand Down
4 changes: 4 additions & 0 deletions test/node-test-cov.test.js
Expand Up @@ -2,6 +2,10 @@ const path = require('path');
const coffee = require('coffee');

describe('test/node-test-cov.test.js', () => {
// https://github.com/bcoe/c8/issues/422#issuecomment-1291572456
// skip temp on Node.js
if (process.version.startsWith('v18.')) return;

const eggBin = require.resolve('../bin/egg-bin.js');
const cwd = path.join(__dirname, 'fixtures/node-test');

Expand Down
4 changes: 4 additions & 0 deletions test/node-test.test.js
Expand Up @@ -2,6 +2,10 @@ const path = require('path');
const coffee = require('coffee');

describe('test/node-test.test.js', () => {
// https://github.com/bcoe/c8/issues/422#issuecomment-1291572456
// skip temp on Node.js
if (process.version.startsWith('v18.')) return;

const eggBin = require.resolve('../bin/egg-bin.js');
const cwd = path.join(__dirname, 'fixtures/node-test');

Expand Down

0 comments on commit 2e43cd2

Please sign in to comment.