Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nazarhussain/vitest-in-process-pool
A vitest pool implemented in main process. Compatible with multiple JS runtimes.
https://github.com/nazarhussain/vitest-in-process-pool
Last synced: 29 days ago
JSON representation
A vitest pool implemented in main process. Compatible with multiple JS runtimes.
- Host: GitHub
- URL: https://github.com/nazarhussain/vitest-in-process-pool
- Owner: nazarhussain
- License: mit
- Created: 2024-12-17T10:46:40.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-17T11:06:51.000Z (about 2 months ago)
- Last Synced: 2025-01-03T06:56:56.958Z (about 1 month ago)
- Language: TypeScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.
1. This pool loads and process all tests in main process where the vitest is running.
2. 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.
```ts
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`.