You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Answering my second question and as a workaround, following the vitest docs we can conditionally check if we are in vitest mode by checking for process.env.VITEST == 'test' || process.env.VITEST == 'benchmark'.
But I feel there is room for improvement here. Since npx vitest runs fine with the https: true setting, it falls on the VSCode extension to either account for/allow the setting, or provide a better error message, rather than simply infinitely looping.
I have now verified that adding server: { https: true } does break reporting of test results to the extension. Furthermore, I have discovered that other server settings also break this extension, like for example server: { port: 3000 }. So it appears this extension does not currently support any projects with server settings.
Describe the bug
If a setting of
server: { https: true }
is present invite.config.js
the extension loops infinitely and doesn't execute the tests.To Reproduce
Steps to reproduce the behavior on the example project:
server: { https: true }
to thevite.config.js
settingsExpected behavior
Ideally the tests should have been run. But instead I am getting the following output until I interrupt:
In my actual live project, am using vite-plugi-mkcert to generate some certificates. But the same behavior is present in that project.
I suppose the question is:
Environment
The text was updated successfully, but these errors were encountered: