Skip to content

Commit 576098e

Browse files
chore: single entry point for running accuracy tests with different config
1 parent a05af95 commit 576098e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
"reformat": "prettier --write .",
3131
"generate": "./scripts/generate.sh",
3232
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage --testPathIgnorePatterns=/tests/accuracy/",
33-
"test:accuracy": "node --experimental-vm-modules node_modules/jest/bin/jest.js --testPathPattern tests/accuracy",
34-
"test:accuracy-file": "MDB_ACCURACY_RUN_ID=$(npx uuid v4) node --experimental-vm-modules node_modules/jest/bin/jest.js"
33+
"test:accuracy": "sh ./scripts/run-accuracy-tests.sh"
3534
},
3635
"license": "Apache-2.0",
3736
"devDependencies": {

scripts/run-accuracy-tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
# Variables necessary for the accuracy test runs
3+
export MDB_ACCURACY_RUN_ID=$(npx uuid v4)
4+
5+
TEST_PATH_PATTERN="${1:-tests/accuracy}"
6+
shift || true
7+
node --experimental-vm-modules node_modules/jest/bin/jest.js --testPathPattern "$TEST_PATH_PATTERN" "$@"

0 commit comments

Comments
 (0)