Skip to content

Commit

Permalink
test: add nuxt-vitest and composable unit tests (#21884)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jul 2, 2023
1 parent 20d59d1 commit 6a9fbbf
Show file tree
Hide file tree
Showing 7 changed files with 436 additions and 4 deletions.
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

0 comments on commit 6a9fbbf

Please sign in to comment.