-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
[Jest] npm run test command doesn't work with fresh new install #553
Comments
I am also having this issue. Shouldn't the generator default to generating code that actually works? |
Had this exact same problem before. Fixed it by adding |
Proposed fix for nuxt#553
I experienced this error in our team's Nuxt project and decided to generate a fresh one for comparison purposes. I wasn't able to run the tests successfully in that new project, leading me here. The fix @welluh proposed worked for me... in both projects. I created PR #649 for this change. However, please note: I am running Node 12.18.3 on macOs 10.14.6. Our team's Nuxt project (without the proposed fix) tests fine on my co-worker's machine and also on Jenkins. The version of Node is the same on both, although the operating system might differ. The merge checks for the PR fail on Ubuntu only. I'm unclear if these are real failures, or why they're failing. The ci output is sparse. I don't use Vue CLI, but the note in this section suggests that users can no longer run jest directly. This seems like it could be the underlying cause, or at least related. |
Hi guys,
I get the following error when running
npx create-nuxt-app appname && cd appname && npm run test
.This is the content of that .log file
This was not happening before, only since I updated "create-nuxt-app" to version 3.0.0.
Any help will be truly appreciated.
Thanks
The text was updated successfully, but these errors were encountered: