mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
21 lines
633 B
JavaScript
21 lines
633 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testMatch: process.env.VITE_TEST_BUILD
|
|
? ['**/playground/**/*.spec.[jt]s?(x)']
|
|
: ['**/*.spec.[jt]s?(x)'],
|
|
testTimeout: process.env.CI ? 30000 : 10000,
|
|
globalSetup: './scripts/jestGlobalSetup.js',
|
|
globalTeardown: './scripts/jestGlobalTeardown.js',
|
|
testEnvironment: './scripts/jestEnv.js',
|
|
setupFilesAfterEnv: ['./scripts/jestPerTestSetup.ts'],
|
|
watchPathIgnorePatterns: ['<rootDir>/temp'],
|
|
moduleNameMapper: {
|
|
testUtils: '<rootDir>/packages/playground/testUtils.ts'
|
|
},
|
|
globals: {
|
|
'ts-jest': {
|
|
tsconfig: './packages/playground/tsconfig.json'
|
|
}
|
|
}
|
|
}
|