test: fix relative path

This commit is contained in:
YunYouJun
2024-01-27 03:45:50 +08:00
parent e741f5d5a0
commit f59c34499a
5 changed files with 13 additions and 7 deletions

View File

@@ -1,6 +1,13 @@
import path from 'node:path'
import { defineVitestConfig } from '@nuxt/test-utils/config'
export default defineVitestConfig({
resolve: {
alias: {
'~/': path.resolve(__dirname, './'),
},
},
test: {
include: ['test/**/*.test.ts'],
environment: 'nuxt',