Files
vite/vitest.config.ts
+3 bcd936335c feat: Environment API (#16471)
Co-authored-by: Hiroshi Ogawa <[email protected]>
Co-authored-by: Dario Piotrowicz <[email protected]>
Co-authored-by: Vladimir Sheremet <[email protected]>
Co-authored-by: Arnaud Barré <[email protected]>
Co-authored-by: Anthony Fu <[email protected]>
Co-authored-by: Dominik G <[email protected]>
Co-authored-by: Igor Minar <[email protected]>
Co-authored-by: Viktor Lázár <[email protected]>
Co-authored-by: Joaquín Sánchez <[email protected]>
Co-authored-by: sapphi-red <[email protected]>
Co-authored-by: bluwy <[email protected]>
2024-09-04 11:27:09 +02:00

32 lines
662 B
TypeScript

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/**',
'./playground/**/*.*',
'./playground-temp/**/*.*',
],
testTimeout: 20000,
isolate: false,
},
esbuild: {
target: 'node18',
},
publicDir: false,
resolve: {
alias: {
'vite/module-runner': path.resolve(
_dirname,
'./packages/vite/src/module-runner/index.ts',
),
},
},
})