-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
API Server is always listening, even if disabled #5474
Comments
I don't see your logs with I do see these:
They are coming from |
Hello @mvantellingen. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
I added an example at https://github.com/mvantellingen/vitest-reproduction I did need to make some changes in the vitest config to trigger the issue, as we import the |
Can confirm that it happens because of this: vitejs/vite#14328 |
Describe the bug
For a while now I get a popup in MacOS that node wants to listen to incoming network connections. Diving into this now with
NODE_DEBUG=net
it seems vitest is opening a server:Setting
api: false
in the config doesn't work, I can modify these values however. When setting the following in my vitest config:And the
NODE_DEBUG=net
output is:So explicitly setting the API config modifies the listen port, and actually shows that the API is starting.
Reproduction
Run vitest using
NODE_DEBUG=net
and look for the outputSystem Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: