chore: 导入清理前的完整工程状态(含 Capacitor 原生壳,作为回滚备份点)
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
include: ['test/**/*.test.ts', 'packages/**/src/**/*.test.ts'],
|
||||
environment: 'jsdom',
|
||||
server: {
|
||||
deps: {
|
||||
inline: ['@vue', '@vueuse', 'vue-demi'],
|
||||
},
|
||||
},
|
||||
|
||||
setupFiles: ['test/setup.ts'],
|
||||
|
||||
alias: {
|
||||
'~': fileURLToPath(new URL('./apps/web/app', import.meta.url)),
|
||||
'@cook/data': fileURLToPath(new URL('./packages/data', import.meta.url)),
|
||||
'@yunyoujun/cook/recommend': fileURLToPath(new URL('./packages/cook/src/utils/recommend.ts', import.meta.url)),
|
||||
},
|
||||
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
reporter: ['text', 'json', 'html'],
|
||||
include: ['apps/web/app/**/*.{ts,vue}', 'packages/**/src/**/*.ts'],
|
||||
exclude: [
|
||||
'test/**',
|
||||
'**/*.test.ts',
|
||||
'**/*.d.ts',
|
||||
'**/types.ts',
|
||||
'**/*.config.ts',
|
||||
],
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user