fix: 调整nuxt测试路径
- 将nuxt测试路径调整到组件旁
This commit is contained in:
@ -1,23 +1,7 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import { defineVitestProject } from '@nuxt/test-utils/config';
|
||||
import { defineVitestConfig } from '@nuxt/test-utils/config';
|
||||
|
||||
export default defineConfig({
|
||||
export default defineVitestConfig({
|
||||
test: {
|
||||
projects: [
|
||||
{
|
||||
test: {
|
||||
name: 'unit',
|
||||
include: ['tests/{e2e,unit}/**/*.{test,spec}.ts'],
|
||||
environment: 'node',
|
||||
},
|
||||
},
|
||||
await defineVitestProject({
|
||||
test: {
|
||||
name: 'nuxt',
|
||||
include: ['tests/nuxt/**/*.{test,spec}.ts'],
|
||||
environment: 'nuxt',
|
||||
},
|
||||
}),
|
||||
],
|
||||
environment: 'nuxt',
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user