vitest-in-process-pool
v2.0.1
Published
A vitest pool implemented in main process. Compatible with multiple JS runtimes.
Readme
vitest-in-process-pool
This package vitest-in-process-pool is developed to overcome the issue of running vitest in different JS runtimes other than NodeJS.
- This pool loads and process all tests in main process where the vitest is running.
- There can be issue with performance, so use only when other pools are not working for you.
Usage
Under the vitest configuration set the pool option.
import {defineConfig} from "vitest/config";
export default defineConfig({
test: {
...
pool: "vitest-in-process-pool",
...
},
});Or from console use --pool vitest-in-process-pool along with vitest.
Known Issues
Error: Task instance was not found for suite "testing skipped"
This is a n known issue and can be resolved by disabling the summary for reporter by adding following reporter configuration.
reporters: [["default", {"summary": false}]]