-
Notifications
You must be signed in to change notification settings - Fork 15
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
when use the context menu to run a single e2e file, got an error #21
Comments
Hi @chaiyilin . Which version of testcafe do you use? And do you have the testcafe package installed in the working directory (c:\alinta\testDemo)? |
"testcafe": "^0.18.3", and yes, i install it locally |
Hm, I just checked it with the testcafe@0.18.3 and it works correctly on my local machine. Try to remove the c:\alinta\testDemo\node_modules folder and install it again: If it doesn't help set the Uncaught Exception checkbox (on the Debug tab) and rerun a test. Which file tries to find the hammerhead.js file in the wrong folder? If the VS Code's debugger doesn't stop on this exception, check also the All Exceptions checkbox on the Debug tab of VS Code and run your test again. |
I can reproduce this issue and found a workaround.
using the plugin
reproducing without the plugin
workaroundIf we pass a relative test file path instead of absolute, it runs fine with npx.
|
Hi @thomasleveil . I met this error a few times and fixed it via full reinstalling of testcafe (via deleting node_modules, package-lock.json and executing How did you find relation between a relative/absolute path to a test file and this problem? |
@chaiyilin Have you resolved the error? Did you try to reinstall testcafe? |
reinstalling testcafe did not help in my case. I guess the issue is in testcafe |
Hi @thomasleveil, I faced with the same problem a few times. It seems it relates to some |
got
Error: ENOENT: no such file or directory, open 'c:\alinta\testDemo\node_modules\testcafe\client\hammerhead.js'
this file does not exist
The text was updated successfully, but these errors were encountered: