-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Usage with Nuxt, Typescript and Jest #7327
Comments
One solution that would probably work would be installing cypress to a different folder with a separate |
type conflicts shown below. Most of these are duplicate of #6690 |
These errors still persist in 4.6.0 https://github.com/MartinMalinda/nuxt-jest-cypress-typescript |
@MartinMalinda I believe you need to add a {
"extends": "../tsconfig.json",
"compilerOptions": {
"types": ["cypress"]
}
} @tgriesser can you weigh in here? |
Thanks @brian-mann. I've already experimented with this separate tsconfig with no luck. The errors appear even if there's no |
But it seems like I had |
From your latest commit, I believe it should just be |
I'm also not sure that you need the |
@tgriesser I see, thank you. The conflicts when running |
I managed to get the build running. I did these two things:
I'll try run tests, use TS etc to check if this solves everything. |
I made it work in the main app as well. It seems like |
Thx i also make it work when I added
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"lib": ["esnext", "esnext.asynciterable", "dom"],
"esModuleInterop": true,
"experimentalDecorators": true,
"allowJs": true,
"sourceMap": true,
"strict": true,
"noImplicitAny": false,
"noEmit": true,
"baseUrl": ".",
"paths": {
"~/*": ["./*"],
"@/*": ["./*"]
},
"types": ["@types/node", "@nuxt/vue-app", "@types/jest"]
},
"exclude": ["tests/e2e"]
} |
Closing as resolved. If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. |
I've played with Cypress for the first time today and the first impression is great, thanks for all the work on this! That being said, while Cypress ran fine, the main app showed a lot of TS errors in build.
There are existing repositories that I look into for guidance:
Test code to reproduce
Minimal reproduction:
https://github.com/MartinMalinda/nuxt-jest-cypress-typescript
npx cypress open
worksnpm run dev
errors out with type conflictsThe text was updated successfully, but these errors were encountered: