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
I'm using wallaby in vscode versopm v1.0.348 together with vitest 0.25.2.
I have a test that uses a package with a node native extension that causes a SIGSEGV seg fault when run in vitest (similar situation to vitest-dev/vitest#317). I'm unsure where the blame lies, but it seems like a vitest problem. I can use the package fine in Quokka or with ts-node.
Either way, the solution is to pass --segfault-retry 1 to vitest or set env var VITEST_SEGFAULT_RETRY for vitest's process.
I'm using automatic configuration, and would like to just simply pass segault-retry by arg or env var to vite when wallaby runs.
Is there a way to do this and keep using automatic configuration without having to set up a full wallaby.config.js?
The text was updated successfully, but these errors were encountered:
[Info] Started Wallaby.js Core v1.0.1345
[Info] Wallaby App (realtime reports) is available at: http://localhost:51245
[Error] Runtime error: Failed to initialize wallaby vitest.
[Error] dependency.startVitest is not a function
[Error] TypeError: dependency.startVitest is not a function
If I create wallaby.cjs, set process.env in that, and then point Select Configuration to it, then the test passes once... occasionally... that is to say I couldn't determine what factor allowed it to run without error, but subsequent attempts with the same configuration mostly failed. wallaby.cjs:
However, when the test did run, then subsequent runs cause vitest's cache to be corrupted:
[Info] console.error: [vitest] Error, while trying to parse cache in /Users/sebastian.nemeth/Projects/org/cleric/core/core/apps/www/node_modules/.vitest/results.json: [SyntaxError: Unexpected end of JSON input]
At this point, I started to suspect that vitest is to blame. Indeed, vitest won't watch with --segfault-retry set, either.
So I think it's safe to say that this ticket is closed, and maybe I should try jest.
I'm using wallaby in vscode versopm
v1.0.348
together withvitest 0.25.2
.I have a test that uses a package with a node native extension that causes a SIGSEGV seg fault when run in vitest (similar situation to vitest-dev/vitest#317). I'm unsure where the blame lies, but it seems like a vitest problem. I can use the package fine in Quokka or with
ts-node
.Either way, the solution is to pass
--segfault-retry 1
to vitest or set env varVITEST_SEGFAULT_RETRY
for vitest's process.I'm using automatic configuration, and would like to just simply pass
segault-retry
by arg or env var to vite when wallaby runs.Is there a way to do this and keep using automatic configuration without having to set up a full wallaby.config.js?
The text was updated successfully, but these errors were encountered: