test: add vitest-environment-nuxt
(#1186)
This commit is contained in:
parent
3513f09148
commit
bf25339bc9
15 changed files with 82 additions and 64 deletions
|
@ -1,31 +0,0 @@
|
|||
import { resolve } from 'path'
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import Vue from '@vitejs/plugin-vue'
|
||||
import AutoImport from 'unplugin-auto-import/vite'
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
'~/': `${resolve(__dirname)}/`,
|
||||
},
|
||||
},
|
||||
define: {
|
||||
'process.server': 'false',
|
||||
'process.client': 'true',
|
||||
},
|
||||
plugins: [
|
||||
Vue({
|
||||
reactivityTransform: true,
|
||||
}),
|
||||
AutoImport({
|
||||
dts: false,
|
||||
imports: [
|
||||
'vue',
|
||||
'@vueuse/core',
|
||||
],
|
||||
dirs: [
|
||||
'composables',
|
||||
],
|
||||
}),
|
||||
],
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue