2025-01-04 13:57:24 -05:00
|
|
|
// Overrides the test options from the modeling-app config.
|
2025-04-01 15:31:19 -07:00
|
|
|
|
|
|
|
import viteTsconfigPaths from 'vite-tsconfig-paths'
|
|
|
|
import { defineConfig, configDefaults } from 'vitest/config'
|
2025-01-04 13:57:24 -05:00
|
|
|
// @ts-ignore: No types available
|
|
|
|
import { lezer } from '@lezer/generator/rollup'
|
|
|
|
|
|
|
|
const config = defineConfig({
|
|
|
|
test: {
|
|
|
|
globals: true,
|
|
|
|
pool: 'forks',
|
|
|
|
poolOptions: {
|
|
|
|
forks: {
|
|
|
|
maxForks: 2,
|
|
|
|
minForks: 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
environment: 'node',
|
|
|
|
reporters: process.env.GITHUB_ACTIONS
|
|
|
|
? ['dot', 'github-actions']
|
2025-03-24 14:57:01 -05:00
|
|
|
: // Gotcha: 'hanging-process' is very noisey, turn off by default on localhost
|
|
|
|
// : ['verbose', 'hanging-process'],
|
|
|
|
['verbose'],
|
2025-01-04 13:57:24 -05:00
|
|
|
testTimeout: 1000,
|
|
|
|
hookTimeout: 1000,
|
|
|
|
teardownTimeout: 1000,
|
|
|
|
},
|
|
|
|
plugins: [viteTsconfigPaths(), lezer()],
|
|
|
|
})
|
|
|
|
|
|
|
|
export default config
|