This article aims to describe a really fast step-by-step way to setup Jest testing for Angular projects including debugging capabilities of Visual...
For further actions, you may consider blocking this person and/or reporting abuse
This blog post is so good that I won't leave it outdated!
I am using angular "@angular/core": "14.2.10" and the vscode debug launch.js script stopped working giving the message:
Error: Unknown arguments: testMatch, testPathPattern, runInBandThe problem is that
Support for camel case arguments has been deprecated and will be removed in a future major version.Use '--run-in-band' instead of '--runInBand'.
Solution
Replace camelCase with kebab-case. Here is the
Debug Jest Current Filescript updated:Thank you @mrcube42 for this awesome post!
Will cypress be better for e2e.
As often, it depends: For example, currently Internet Explorer is not supported. Then you have to go with something Selenium-based like Protractor. The developer experience of Cypress is just amazing; it feels quite natural, powerful and I find it less fragile. Take a look at the official website (cypress.io/) and just give it a try. The initial setup and your first tests should take just a few minutes to hours. You could even use Briegbug's schematic for your Angular project (npmjs.com/package/@briebug/cypress...).
Thank you for the insight David! I will definitely give cypress a go for my next project and also the schematic :)