We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the Node API createVitest, the CLI output just goes on a loop saying:
createVitest
Test Files 0 passed (1) Tests 0 passed (0) Start at 11:14:55 Duration 232.25s
Here is a minimal test configuration file:
import { createVitest } from "vitest/node"; const vitestServer = await createVitest("test", { watch: false }, {}, {}); await vitestServer.start(); await vitestServer.close();
And this minimal test file:
import { it, expect } from "vitest"; it("works", () => { expect(1).toEqual(1); });
Here I made a repository with a reproduction, and even an animated gif.
https://github.com/Zequez/vitest-node-api-error-repro
Using Bun package manager, which is not an option.
npm
The text was updated successfully, but these errors were encountered:
Seems related to Bun, as I tried with NPM and it works. Does Vitest not work with Bun at all?
Sorry, something went wrong.
Please, refer to oven-sh/bun#4145 for Bun support. Bun positions itself as Node.js compliant, Vitest doesn't have any special handling for Bun.
No branches or pull requests
Describe the bug
Using the Node API
createVitest
, the CLI output just goes on a loop saying:Here is a minimal test configuration file:
And this minimal test file:
Reproduction
Here I made a repository with a reproduction, and even an animated gif.
https://github.com/Zequez/vitest-node-api-error-repro
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: