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

test: add nuxt-vitest and composable unit tests #21884

Merged
merged 3 commits into from Jul 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -226,6 +226,9 @@ jobs:
- name: Test (unit)
run: pnpm test:unit

- name: Test (runtime unit)
run: pnpm test:runtime

- name: Test (fixtures)
run: pnpm test:fixtures
env:
Expand Down
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -22,6 +22,7 @@
"test:fixtures:payload": "TEST_PAYLOAD=js pnpm test:fixtures",
"test:fixtures:dev": "TEST_ENV=dev pnpm test:fixtures",
"test:fixtures:webpack": "TEST_BUILDER=webpack pnpm test:fixtures",
"test:runtime": "vitest -c vitest.nuxt.config.ts",
"test:types": "pnpm --filter './test/fixtures/**' test:types",
"test:unit": "vitest run --dir packages",
"typecheck": "tsc --noEmit"
Expand Down Expand Up @@ -63,6 +64,7 @@
"markdownlint-cli": "^0.33.0",
"nuxi": "workspace:*",
"nuxt": "workspace:*",
"nuxt-vitest": "^0.8.7",
"ofetch": "1.1.1",
"pathe": "1.1.1",
"playwright": "1.35.1",
Expand All @@ -73,6 +75,7 @@
"ufo": "1.1.2",
"vite": "4.3.9",
"vitest": "0.32.2",
"vitest-environment-nuxt": "^0.8.7",
"vue": "3.3.4",
"vue-eslint-parser": "9.3.1",
"vue-tsc": "1.8.3"
Expand Down