Skip to content

Commit 426cda8

Browse files
chore: run unit and integration for test script
1 parent f6b2e7d commit 426cda8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"check:types": "tsc --noEmit --project tsconfig.json",
3030
"reformat": "prettier --write .",
3131
"generate": "./scripts/generate.sh",
32-
"test": "vitest --coverage",
32+
"test": "vitest --project unit-and-integration --coverage",
3333
"pretest:accuracy": "npm run build:compile",
3434
"test:accuracy": "sh ./scripts/accuracy/run-accuracy-tests.sh"
3535
},

scripts/accuracy/run-accuracy-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export MDB_ACCURACY_RUN_ID=$(npx uuid v4)
1717
# specified in the command line. Such as:
1818
# npm run test:accuracy -- tests/accuracy/some-test.test.ts
1919
echo "Running accuracy tests with MDB_ACCURACY_RUN_ID '$MDB_ACCURACY_RUN_ID'"
20-
vitest --config vitest.config.ts --project=accuracy --coverage=false --run --testTimeout=3600000 "$@"
20+
vitest --config vitest.config.ts --project=accuracy --coverage=false --run "$@"
2121

2222
# Preserving the exit code from test run to correctly notify in the CI
2323
# environments when the tests fail.

vitest.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ export default defineConfig({
2222
},
2323
projects: [
2424
{
25+
extends: true,
2526
test: {
2627
name: "unit-and-integration",
2728
include: ["**/*.test.ts"],
2829
exclude: [...vitestDefaultExcludes, "tests/accuracy/**"],
2930
},
3031
},
3132
{
33+
extends: true,
3234
test: {
3335
name: "accuracy",
3436
include: ["**/accuracy/*.test.ts"],

0 commit comments

Comments
 (0)