We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2236951 commit 7881651Copy full SHA for 7881651
scripts/accuracy/run-accuracy-tests.sh
@@ -14,8 +14,12 @@ export MDB_ACCURACY_RUN_ID=$(npx uuid v4)
14
# By default we run all the tests under tests/accuracy folder unless a path is
15
# specified in the command line. Such as:
16
# npm run test:accuracy -- tests/accuracy/some-test.test.ts
17
-TEST_PATH_PATTERN="${1:-tests/accuracy}"
18
-shift || true
+if [ $# -gt 0 ]; then
+ TEST_PATH_PATTERN="$1"
19
+ shift
20
+else
21
+ TEST_PATH_PATTERN="tests/accuracy"
22
+fi
23
echo "Running accuracy tests with MDB_ACCURACY_RUN_ID '$MDB_ACCURACY_RUN_ID' and TEST_PATH_PATTERN '$TEST_PATH_PATTERN'"
24
node --experimental-vm-modules node_modules/jest/bin/jest.js --bail --testPathPatterns "$TEST_PATH_PATTERN" "$@"
25
0 commit comments