Skip to content
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

[BUG] Typing issues Jest + Cypress #1099

Closed
michaelw85 opened this issue May 16, 2019 · 1 comment
Closed

[BUG] Typing issues Jest + Cypress #1099

michaelw85 opened this issue May 16, 2019 · 1 comment

Comments

@michaelw85
Copy link
Contributor

michaelw85 commented May 16, 2019

I'm submitting a bug report

  • Language:
    TypeScript

  • Loader/bundler:
    Webpack

Current behavior:
Newly created project with Aurelia CLI shows errors when running the app. Due to compile errors HMR fails to work and Cypress is not working properly.

Steps to reproduce
Create new custom app with the following settings (jest & cypress combination is critical):
au new sample-app

  1. webpack
  2. http2
  3. web
  4. ts
  5. maximum minification
  6. sass
  7. postcss typical
  8. jest
  9. cypress
  10. vscode
  11. navigation app examples

NPM and Yarn yield the same result.

au run

  • What is the expected behavior?
    No errors

How to fix

  • add @types/mocha
  • add type reference in jest-pretest seems to work without
michaelw85 added a commit to michaelw85/cli that referenced this issue May 16, 2019
Add @types/mocha to fix compilation when using ts + jest + cypress.

Closes aurelia#1099
@michaelw85
Copy link
Contributor Author

✔ Resolved by #1091

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant