vite/vitest.config.ts
patak f684d4cd5c
feat: environment api (#16129)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
Co-authored-by: 翠 / green <green@sapphi.red>
Co-authored-by: Jun Shindo <46585162+jay-es@users.noreply.github.com>
Co-authored-by: Greg T. Wallace <greg@gregtwallace.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Caven <cavenasdev@gmail.com>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Co-authored-by: Matyáš Racek <panstromek@seznam.cz>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-04-19 14:42:21 +02:00

31 lines
642 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,
},
esbuild: {
target: 'node18',
},
publicDir: false,
resolve: {
alias: {
'vite/module-runner': path.resolve(
_dirname,
'./packages/vite/src/module-runner/index.ts',
),
},
},
})