Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run test via vitest workspace #1202

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
timotheeguerin marked this conversation as resolved.
Show resolved Hide resolved
"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"
Expand Down
2 changes: 2 additions & 0 deletions vitest.workspace.fast.ts
Original file line number Diff line number Diff line change
@@ -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"];
Loading