export type RstestPoolOptions = {
/** Pool used to run tests in. */
type?: 'fork';
/** Maximum number or percentage of workers to run tests in. */
maxWorkers?: number | string;
/** Minimum number or percentage of workers to run tests in. */
minWorkers?: number | string;
/** Pass additional arguments to node process in the child processes. */
execArgv?: string[];
};const defaultPool = {
type: 'fork'
maxWorkers: available CPUs
minWorkers: available CPUs
}Options of pool used to run tests in.
Run all tests inside a single child process.
import { defineConfig } from '@rstest/core';
export default defineConfig({
pool: {
type: 'forks',
maxWorkers: 1,
minWorkers: 1,
},
});