Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344import { defineConfig } from 'vitest/config'
export default defineConfig({ test: { watch: false, globalSetup: './global-setup.ts',
// Switch between forks|threads pool: 'forks',
poolOptions: { threads: { execArgv: [ // https://nodejs.org/api/cli.html#--cpu-prof '--cpu-prof', '--cpu-prof-dir=threads-profile',
// https://nodejs.org/api/cli.html#--heap-prof '--heap-prof', '--heap-prof-dir=threads-profile', ],
// Generate a single profile singleThread: true, },
forks: { execArgv: [ // https://nodejs.org/api/cli.html#--cpu-prof '--cpu-prof', '--cpu-prof-dir=forks-profile',
// https://nodejs.org/api/cli.html#--heap-prof '--heap-prof', '--heap-prof-dir=forks-profile', ],
// Generate a single profile singleFork: true, }, }, },})