mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
242f550eb4
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com> Co-authored-by: Dario Piotrowicz <dario.piotrowicz@gmail.com> Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com> Co-authored-by: Arnaud Barré <arnaud.barre@carbometrix.com> Co-authored-by: Anthony Fu <github@antfu.me> Co-authored-by: Dominik G <dominik.goepel@gmx.de> Co-authored-by: Igor Minar <i@igor.dev> Co-authored-by: Viktor Lázár <lazarv1982@gmail.com> Co-authored-by: Joaquín Sánchez <userquin@gmail.com> Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
32 lines
662 B
TypeScript
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',
|
|
),
|
|
},
|
|
},
|
|
})
|