Skip to content

Commit 421c5bd

Browse files
AndrewFinlaycoreyfarrell
authored andcommitted
chore: Remove test artefacts that ensure failure on subsequent tests (#1138)
If the tests fail with a bad 'test/fixtures/cli/foo-cache', then subsequent tests will also fail unless the cache is cleaned. A failed test run also leaves a lot of files in 'test/temp-dir-nyc-integration' that are cleaned on success, but not before the start of the next run in case of failure.
1 parent 4bc9c14 commit 421c5bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test": "tap -t360 --no-cov -b test/*.js",
1010
"snap": "cross-env TAP_SNAPSHOT=1 npm test",
1111
"posttest": "npm run report",
12-
"clean": "rimraf ./.nyc_output ./node_modules/.cache ./.self_coverage ./test/fixtures/.nyc_output ./test/fixtures/node_modules/.cache ./self-coverage",
12+
"clean": "rimraf ./.nyc_output ./node_modules/.cache ./.self_coverage ./test/fixtures/.nyc_output ./test/fixtures/node_modules/.cache ./test/fixtures/cli/foo-cache ./test/temp-dir-* ./self-coverage",
1313
"instrument": "node ./build-self-coverage.js",
1414
"report": "node ./bin/nyc report --temp-dir ./.self_coverage/ -r text -r lcov",
1515
"release": "standard-version"

0 commit comments

Comments
 (0)