mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 22:59:10 +00:00
123ef4c47c
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
20 lines
435 B
TypeScript
20 lines
435 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ['**/__tests__/**/*.spec.[tj]s'],
|
|
exclude: [
|
|
'**/node_modules/**',
|
|
'**/dist/**',
|
|
'./playground/**/*.*',
|
|
'./playground-temp/**/*.*',
|
|
],
|
|
testTimeout: 20000,
|
|
// node14 segfaults often with threads
|
|
threads: !process.versions.node.startsWith('14'),
|
|
},
|
|
esbuild: {
|
|
target: 'node14',
|
|
},
|
|
})
|