Skip to content

Commit 0d6f5ab

Browse files
authored
test: ignore test files in coverage (#2566)
1 parent d28a083 commit 0d6f5ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"set-react-version": "node scripts/internal/set-react-version.mts",
8484
"show-affected": "node scripts/build/affected.mts",
8585
"test": "node scripts/internal/test.mts",
86-
"test:js": "node --test $(git ls-files '*.test.ts')",
86+
"test:js": "node --no-warnings --test $(git ls-files '*.test.ts')",
8787
"test:matrix": "node scripts/testing/test-matrix.mts",
8888
"test:rb": "bundle exec ruby -Ilib:test -e \"Dir.glob('./test/test_*.rb').each { |file| require(file) }\""
8989
},

scripts/internal/test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ switch (getTarget(input)) {
2424
break;
2525
case "typescript":
2626
testWith(process.argv0, [
27-
"--experimental-strip-types",
2827
"--no-warnings",
2928
"--test",
3029
"--experimental-test-coverage",
30+
"--test-coverage-exclude=test/**/*.ts",
3131
...input,
3232
]);
3333
break;

0 commit comments

Comments
 (0)