Skip to content

Commit 15f446b

Browse files
committed
only test angular 19 and 20 for cypress schematic as we need to release zoneless support FIRST before we can have the schematic support angular 21
1 parent b6e60fd commit 15f446b

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

npm/cypress-schematic/src/ct.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const copyAngularMount = async (projectPath: string) => {
2424

2525
const cypressSchematicPackagePath = path.join(__dirname, '..')
2626

27-
const ANGULAR_PROJECTS: ProjectFixtureDir[] = ['angular-20', 'angular-21']
27+
const ANGULAR_PROJECTS: ProjectFixtureDir[] = ['angular-19', 'angular-20']
2828

2929
const timeout = 1000 * 60 * 5
3030

npm/webpack-dev-server/test/handlers/angularHandler.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('angularHandler', { timeout: 60000 }, function () {
8484
browser: 'src/main.ts',
8585
tsConfig: 'tsconfig.app.json',
8686
assets: ['src/favicon.ico', 'src/assets'],
87-
styles: ['src/styles.scss'],
87+
styles: ['src/styles.css'],
8888
optimization: false,
8989
extractLicenses: false,
9090
sourceMap: true,

system-tests/projects/angular-21/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,5 @@
2828
"jsdom": "^27.1.0",
2929
"typescript": "~5.9.2",
3030
"vitest": "^4.0.8"
31-
},
32-
"projectFixtureDirectory": "angular"
31+
}
3332
}

system-tests/test/component_testing_spec.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe(`React major versions with Webpack`, function () {
7474
}
7575
})
7676

77-
const ANGULAR_VERSIONS = ['18', '19', '20', '21'] as const
77+
const ANGULAR_VERSIONS = ['18', '19', '20'] as const
7878

7979
describe(`Angular CLI versions`, () => {
8080
systemTests.setup()
@@ -89,6 +89,16 @@ describe(`Angular CLI versions`, () => {
8989
})
9090
}
9191

92+
// NOTE: Angular 21 has to be tested separate because it uses the zoneless mount function,
93+
// which doesn't support zone.js any longer OR support autoDetectChanges or autoSpyOutputs
94+
systemTests.it(`v21 with mount tests`, {
95+
project: `angular-21`,
96+
spec: 'src/**/*.cy.ts,!src/app/errors.cy.ts',
97+
testingType: 'component',
98+
browser: 'chrome',
99+
expectedExitCode: 0,
100+
})
101+
92102
systemTests.it('angular 19 custom config', {
93103
project: 'angular-custom-config',
94104
spec: 'src/app/my-component.cy.ts',

0 commit comments

Comments
 (0)