test: fix nuxt vitest

This commit is contained in:
YunYouJun
2023-11-06 02:26:45 +08:00
parent d3ab8fb2c1
commit 0232595083
10 changed files with 212 additions and 8 deletions

10
vitest.nuxt.config.ts Normal file
View File

@@ -0,0 +1,10 @@
import { defineVitestConfig } from 'nuxt-vitest/config'
export default defineVitestConfig({
test: {
include: ['test/**/*.test.ts'],
environment: 'nuxt',
setupFiles: ['test/setup.ts'],
},
})