mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
22 lines
No EOL
542 B
JavaScript
22 lines
No EOL
542 B
JavaScript
import { defineConfig } from 'vitest/config';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: false,
|
|
include: ['tests/**/*.test.{js,mjs}'],
|
|
exclude: ['tests/*Contract.test.mjs', 'node_modules/**'],
|
|
passWithNoTests: true,
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'html'],
|
|
include: ['src/utils/**', 'src/store/**'],
|
|
},
|
|
},
|
|
}); |