Skip to content

Commit

Permalink
Disable native code coverage until is stable (#128)
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina authored Nov 21, 2024
1 parent 8ba3d99 commit 33e2623
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export default async function runWithTypeScript (config) {

config.files = files

config.coverage = false
stream = run(config)

stream.on('close', () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down
2 changes: 1 addition & 1 deletion test/coverage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 33e2623

Please sign in to comment.