From 3f11ccfc2b07c3d17d401483a7a83047c406578f Mon Sep 17 00:00:00 2001 From: Timothee Guerin Date: Thu, 18 Jul 2024 15:00:28 -0700 Subject: [PATCH] Run test via vitest workspace --- package.json | 4 ++-- vitest.workspace.fast.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 vitest.workspace.fast.ts diff --git a/package.json b/package.json index cf8ed469c4..554f38cb40 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,9 @@ "purge": "rimraf --glob \"packages/*/node_modules/\" --glob \"core/packages/*/node_modules/\"", "regen-docs": "pnpm run-all --parallel --aggregate-output --reporter=append-only run regen-docs", "regen-samples": "pnpm run-all run regen-samples", - "test:ci": "pnpm -r --filter=!./core/ --filter=!./core/** --aggregate-output --reporter=append-only --sequential test:ci", + "test": "vitest run --workspace ./vitest.workspace.fast.ts", + "test:ci": "pnpm test --coverage --reporter=junit --reporter=default", "test:e2e": "pnpm run-all run test:e2e", - "test": "pnpm run-all run test", "update-latest-docs": "pnpm run-all run update-latest-docs", "watch": "tsc --build ./tsconfig.ws.json --watch", "sync-labels": "tsx ./core/eng/common/scripts/labels/sync-labels.ts --config ./eng/config/labels.ts" diff --git a/vitest.workspace.fast.ts b/vitest.workspace.fast.ts new file mode 100644 index 0000000000..a42c3b7a96 --- /dev/null +++ b/vitest.workspace.fast.ts @@ -0,0 +1,2 @@ +// Exclude core packages so we can only run test for this repo +export default ["packages/*/vitest.config.ts", "packages/*/vitest.config.mts"];