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
node index.js (should print path and dll version without error)
node .\node_modules\jest\bin\jest.js --silent=false (should print same path but error "Dynamic Linking Error: Win32 error 126" which means that the dll could not be found, which is due to the path env variable not being set correctly)
Make sure to run steps 4 and 5 not in a terminal from within VSCode, as VSCode injects the current path to the path env variable.
Expected behavior
I expect the test run with jest to work without error.
Actual behavior
Using jest to run, the index.js will print the correct path env variable, but behave as if the path env variable was not set correctly.
Sorry folks, looks like the problem was on my side. I looked at the wrong places. The path variable was fine all along also in jest, but some lines above, I try to include a dll with a relative path and that won't work with jest and also not from any arbitrary script that might include my script.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Version
29.3.1
Steps to reproduce
cd jest-bug-example
npm install
node index.js
(should print path and dll version without error)node .\node_modules\jest\bin\jest.js --silent=false
(should print same path but error "Dynamic Linking Error: Win32 error 126" which means that the dll could not be found, which is due to the path env variable not being set correctly)Make sure to run steps 4 and 5 not in a terminal from within VSCode, as VSCode injects the current path to the path env variable.
Expected behavior
I expect the test run with jest to work without error.
Actual behavior
Using jest to run, the index.js will print the correct path env variable, but behave as if the path env variable was not set correctly.
Additional context
Maybe connected: #3552
Some more context is described in the readme in the repo https://github.com/mathiasbockwoldt/jest-bug-example
Environment
The text was updated successfully, but these errors were encountered: