Files
ComfyUI_frontend/vitest.config.ts
2024-08-31 21:10:32 -04:00

21 lines
423 B
TypeScript

import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
test: {
globals: true,
environment: 'happy-dom',
setupFiles: ['./vitest.setup.ts'],
include: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
coverage: {
reporter: ['text', 'json', 'html']
}
},
resolve: {
alias: {
'@': '/src'
}
}
})