Back to Nx

Update Angular Component Testing Support

packages/cypress/src/migrations/update-22-1-0/update-angular-component-testing-support.md

22.7.1730 B
Original Source

Use the fallback Angular component testing harness for Cypress v15

Cypress v15 requires Angular component testing projects running Angular versions below 18 to migrate from the built-in cypress/angular helper to the @cypress/angular harness (v3). This migration updates component testing imports and ensures the correct dependency is installed.

Read more in the migration guide.

Examples

Before
ts
import { mount } from 'cypress/angular';
After
ts
import { mount } from '@cypress/angular';