Skip to content

Commit e631bb1

Browse files
committed
chore: configure Jest to exclude e2e tests
1 parent 5e8f468 commit e631bb1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

jest.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Jest was configured in 74d3967f (Sept 2024) but no Jest tests were ever written.
2+
// This config excludes Playwright e2e tests which Jest cannot parse.
3+
module.exports = {
4+
testEnvironment: "jsdom",
5+
testPathIgnorePatterns: ["/node_modules/", "/tests/e2e/"],
6+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"format": "prettier --write . --cache",
1818
"format:python": "./scripts/format-python.sh",
1919
"prepare": "husky",
20-
"test": "jest --runInBand",
20+
"test": "jest --runInBand --passWithNoTests",
2121
"build-brc-db": "esrun catalog/build/ts/build-catalog.ts",
2222
"build-ga2-db": "esrun catalog/ga2/build/ts/build-catalog.ts",
2323
"build-brc-from-ncbi": "python3 -m catalog.build.py.build_files_from_ncbi",

0 commit comments

Comments
 (0)