mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-02 05:30:21 +00:00
38 lines
888 B
TypeScript
38 lines
888 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
test: {
|
|
root: __dirname,
|
|
environment: 'jsdom',
|
|
include: ['test/**/*.{test,spec}.?(c|m)[jt]s?(x)', 'src/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
exclude: ['test/e2e/**', 'test/performance/**'],
|
|
testTimeout: 1000 * 29,
|
|
globals: true,
|
|
setupFiles: ['test/setup.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
exclude: [
|
|
'node_modules/',
|
|
'test/',
|
|
'dist/',
|
|
'dist-electron/',
|
|
'electron/',
|
|
'build/',
|
|
'**/*.d.ts',
|
|
'**/*.config.*',
|
|
'**/coverage/**'
|
|
],
|
|
},
|
|
reporters: ['default', 'junit'],
|
|
outputFile: {
|
|
junit: 'test-results/junit.xml',
|
|
},
|
|
},
|
|
})
|