-
Notifications
You must be signed in to change notification settings - Fork 48
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
The from argument must be of type string. Recieved Undefined #34
Comments
Hello @csurfleet,
I was able to work around this by creating a folder called 'tests' and placing the feature and js files within that. I also updated the test command to:
Can you try this? I have also attached the example project I created to this comment. :-) |
Hello @csurfleet Sorry I didn't answer sooner (thanks a lot @thelazurite-cell btw 😊 ). As you said, this error is often due to an issue in dependencies/organization of the project (#31 recently) Are you completely certain that Cucumber is not installed globally? (regardless of the version) |
Hey all, I found that it was due to a file path! My code was under C:\Source, but cucumber was lower-casing the S, and then complaining that the path with the upper case S didn't match the path with the lower case s, and therefore it was installed in multiple places. I found it by just installing cucumber directly to another test project - I got a more helpful error, then moved the original project to a lower case file location and all is now well. Thanks for all the help! |
Hi
My only global packkage installed is yarn. Tnx a lot |
Hi @kel666 Could you try to downgrade TestCafe to 1.18.6? It might not be the reason you get this issue though, so if using TC 1.18.6 is not possible or doesn't solve the issue, don't hesitate to open a new issue :) |
I've been really struggling with this one to get things setup, whenever I try to run a test I get this error. The internet suggests that it is due to cucumber being installed multiple times but I've confirmed that it isn't installed elsewhere on the computer, and all my config looks correct. This is my package.json
This is my feature file:
and my js file:
I get this error:
I'm not sure what else I can do here as I can't really simplify it any further
The text was updated successfully, but these errors were encountered: