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

When TypeScript code not compiling, Cypress crashes #105

Open
yonigibbs opened this issue Jan 3, 2020 · 0 comments
Open

When TypeScript code not compiling, Cypress crashes #105

yonigibbs opened this issue Jan 3, 2020 · 0 comments

Comments

@yonigibbs
Copy link

yonigibbs commented Jan 3, 2020

Current behavior:

If a test written in TypeScript is saved with the code not compiling, it causes the window containing the test to crash, and the main Cypress window to show the following:

TypeScript crash screenshot

This does not occur with JavaScript files left in an invalid state.

Desired behavior:

TypeScript files with invalid code should be handled in same way as JavaScript files are, i.e. the window containing the test should be left open, and an explanatory message should be shown, e.g.

JavaScript error handled screenshot

Steps to reproduce: (app code and test code)

A repo with instructions on how to reproduce is available here: https://github.com/yonigibbs/cypress-typescript-crash

Versions

  • Cypress: 3.8.0
  • add-typescript-to-cypress: 2.1.2
  • OS: Ubuntu 18.04
  • Browser: Chrome or Electron from within Cypress
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

No branches or pull requests

1 participant