vite/vitest.config.ts

31 lines
630 B
TypeScript
Raw Normal View History

import path from 'node:path'
import url from 'node:url'
import { defineConfig } from 'vitest/config'
const _dirname = path.dirname(url.fileURLToPath(import.meta.url))
export default defineConfig({
test: {
include: ['**/__tests__/**/*.spec.[tj]s'],
exclude: [
'**/node_modules/**',
'**/dist/**',
2022-05-09 07:36:14 +00:00
'./playground/**/*.*',
'./playground-temp/**/*.*',
2022-05-09 18:49:38 +00:00
],
testTimeout: 20000,
},
esbuild: {
target: 'node18',
},
publicDir: false,
resolve: {
alias: {
'vite/runtime': path.resolve(
_dirname,
'./packages/vite/src/runtime/index.ts',
),
},
},
})