From 33e2623df8e3216b2d0c108e33ec61e65e181f13 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Thu, 21 Nov 2024 19:22:18 +0100 Subject: [PATCH] Disable native code coverage until is stable (#128) Signed-off-by: Matteo Collina --- lib/run.js | 1 + package.json | 2 +- test/coverage.test.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/run.js b/lib/run.js index c6a2e0a..3da4ace 100644 --- a/lib/run.js +++ b/lib/run.js @@ -221,6 +221,7 @@ export default async function runWithTypeScript (config) { config.files = files + config.coverage = false stream = run(config) stream.on('close', () => { diff --git a/package.json b/package.json index ba88043..f5f356c 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "scripts": { "clean": "rm -rf fixtures/*/dist .test-*", "lint": "standard | snazzy", - "unit": "node borp.js --ignore \"fixtures/**/*\" --coverage --coverage-exclude \"fixtures/**/*\" --coverage-exclude \"test*/**/*\"", + "unit": "node borp.js --ignore \"fixtures/**/*\" -C --coverage-exclude \"fixtures/**/*\" --coverage-exclude \"test*/**/*\"", "test": "npm run clean ; npm run lint && npm run unit" }, "keywords": [], diff --git a/test/coverage.test.js b/test/coverage.test.js index dbc210f..a6fc332 100644 --- a/test/coverage.test.js +++ b/test/coverage.test.js @@ -22,7 +22,7 @@ test('coverage', async () => { test('coverage excludes', async () => { const res = await execa('node', [ borp, - '--coverage', + '-C', '--coverage-exclude=src' ], { cwd: join(import.meta.url, '..', 'fixtures', 'ts-esm')