vitest/test/cli/fixtures/custom-pool/vitest.config.ts
Vladimir 41beb261e6
feat: deprecate workspace in favor of projects (#7923)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2025-05-05 18:49:26 +02:00

31 lines
599 B
TypeScript

import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
poolOptions: {
custom: {
print: 'options are respected',
array: [1, 2, 3],
},
},
projects: [
{
extends: true,
test: {
name: 'custom-pool-test',
pool: './pool/custom-pool.ts',
exclude: ['**/*.threads.spec.ts'],
},
},
{
extends: true,
test: {
name: 'threads-pool-test',
include: ['**/*.threads.spec.ts'],
pool: 'threads',
},
},
]
},
})