File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed
Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ pnpm lint
8989# Run Vitest
9090pnpm test
9191pnpm test:watch
92+ pnpm test --project nuxt
93+ pnpm test --project types
9294
9395# Release new version
9496pnpm release
File renamed without changes.
Original file line number Diff line number Diff line change 1- import { defineVitestConfig } from '@nuxt/test-utils/config'
1+ import { defineVitestProject } from '@nuxt/test-utils/config'
2+ import { defineConfig } from 'vitest/config'
23
3- export default defineVitestConfig ( {
4+ // https://nuxt.com/docs/4.x/getting-started/testing#setup
5+ export default defineConfig ( {
46 test : {
5- environment : 'nuxt' ,
7+ projects : [
8+ await defineVitestProject ( {
9+ test : {
10+ name : 'nuxt' ,
11+ environment : 'nuxt' ,
12+ } ,
13+ } ) ,
14+ {
15+ test : {
16+ name : 'types' ,
17+ include : [ 'tests/**/*.spec-d.ts' ] ,
18+ typecheck : {
19+ enabled : true ,
20+ only : true ,
21+ } ,
22+ } ,
23+ } ,
24+ ] ,
625 } ,
726} )
You can’t perform that action at this time.
0 commit comments