Two weeks have passed since the release of Angular 14, and we already have a pre-release for the next minor 14.1.
It adds a new router guard called CanMatch. That guard can be used instead of the combination between canActivate and canLoad, but its main novelty is the ability to assign multiple components or even modules to the same path.
And we can programmatically decide which version of that path Angular should use. That could depend on a feature flag, the domain, or something else.
Cypress released version 10.1. Cypress is the most used E2E testing framework. Version 10.0 was released in the same week as Angular 14, so it didn't get so much coverage here.
Beginning with version 10, Cypress offers the possibility for component testing in a beta version. Component testing in an alpha stadium was already available possible before, but you had to use the component test runner which came as a separate executable. Now, the main Cypress UI can do both.
Currently, it only works with React or Vue, but according to Jordan Powell, a member of the Cypress team, they are also working on support for Angular. Once it becomes stable, it has the potential to change the way we write tests completely. We will not have to deal with asynchronity and change detection anymore. Cypress takes care of that automatically.
Actually, there exists an unofficial version for Angular as well, which is provided by jscutlery/devkit.
This is the home of the following tools which are aiming to:
|@jscutlery/cypress-angular||Cypress Component Testing support for Angular.|
|@jscutlery/cypress-harness||Cypress support for Angular Component Test Harnesses.|
|@jscutlery/microwave||Optimize Angular change detection effortlessly.|
|@jscutlery/operators||Set of operators for RxJS like
This project follows the all-contributors specification.
This project is MIT licensed.