question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Usage with Nuxt, Typescript and Jest

See original GitHub issue

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 works npm run dev errors out with type conflicts

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
MartinMalindacommented, May 21, 2020

I managed to get the build running.

I did these two things:

  1. removed extend from the tsconfig.json in cypress folder - I guess the extend merged the types, not overrode it and that caused the conflicts
  2. I added cypress to exclude in the root tsconfig.json

I’ll try run tests, use TS etc to check if this solves everything.

0reactions
jennifer-shehanecommented, Jul 9, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set up Nuxt3 with Jest & TypeScript | by Florian Gößler - Medium
Run Jest unit tests for single-file components, composables or any other JS/TS files · Write unit tests in TypeScript and have them properly...
Read more >
thejones/nuxt-typescript-jest - GitHub
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may...
Read more >
Testing | learn-nuxt-ts
Adding and configuring Jest. Following dependencies will be used: Jest. Our test runner. As we are using TypeScript, @types/jest is ...
Read more >
Power a Nuxt application with TypeScript | by Alain Seng
Use TypeScript types ( number instead of Number , string instead of String , etc); Add / update types in JSDocs as well....
Read more >
Jest encountered an unexpected token for NUXT typescript
after days and days research and debug, finally I resolved this issue by myself. referred to this blog ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found