-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add support for Angular 16 (#26052)
* feat(angular): add support for Angular 16 * chore: update angular 16 pre-release version * feat: handle getStylesConfig returning a Promise in Angular 16 (#26559) * chore: remove next from deps to prepare for release * remove .only, add angular-16 to webpack-dev-server e2e tests --------- Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com> Co-authored-by: astone123 <adams@cypress.io>
- Loading branch information
1 parent
4d6da9c
commit e2439b1
Showing
13 changed files
with
6,161 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
21 changes: 0 additions & 21 deletions
21
system-tests/projects/angular-15/src/app/components/standalone.component.cy.ts
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
system-tests/projects/angular-15/src/app/components/standalone.component.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "angular-16", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"ng": "ng", | ||
"start": "ng serve", | ||
"build": "ng build", | ||
"watch": "ng build --watch --configuration development", | ||
"test": "ng test" | ||
}, | ||
"dependencies": { | ||
"@angular/animations": "^16.0.0-next.5", | ||
"@angular/common": "^16.0.0-next.5", | ||
"@angular/compiler": "^16.0.0-next.5", | ||
"@angular/core": "^16.0.0-next.5", | ||
"@angular/forms": "^16.0.0-next.5", | ||
"@angular/platform-browser": "^16.0.0-next.5", | ||
"@angular/platform-browser-dynamic": "^16.0.0-next.5", | ||
"@angular/router": "^16.0.0-next.5", | ||
"rxjs": "~7.8.0", | ||
"tslib": "^2.3.0", | ||
"zone.js": "~0.13.0" | ||
}, | ||
"devDependencies": { | ||
"@angular-devkit/build-angular": "^16.0.0-next.6", | ||
"@angular/cli": "~16.0.0-next.6", | ||
"@angular/compiler-cli": "^16.0.0-next.5", | ||
"@types/jasmine": "~4.3.0", | ||
"jasmine-core": "~4.5.0", | ||
"karma": "~6.4.0", | ||
"karma-chrome-launcher": "~3.1.0", | ||
"karma-coverage": "~2.2.0", | ||
"karma-jasmine": "~5.1.0", | ||
"karma-jasmine-html-reporter": "~2.0.0", | ||
"typescript": "~4.9.4" | ||
}, | ||
"projectFixtureDirectory": "angular" | ||
} |
14 changes: 14 additions & 0 deletions
14
system-tests/projects/angular-16/src/app/components/signals.component.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { SignalsComponent } from './signals.component' | ||
|
||
describe('SiganlsComponent', () => { | ||
it('can mount a signals component', () => { | ||
cy.mount(SignalsComponent) | ||
}) | ||
|
||
it('can increment the count using a signal', () => { | ||
cy.mount(SignalsComponent) | ||
cy.get('span').contains(0) | ||
cy.get('button').click() | ||
cy.get('span').contains(1) | ||
}) | ||
}) |
14 changes: 14 additions & 0 deletions
14
system-tests/projects/angular-16/src/app/components/signals.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Component, signal } from '@angular/core' | ||
|
||
@Component({ | ||
standalone: true, | ||
selector: 'app-signals', | ||
template: `<span>{{ count() }}</span> <button (click)="increment()">+</button>`, | ||
}) | ||
export class SignalsComponent { | ||
count = signal(0) | ||
|
||
increment (): void { | ||
this.count.update((_count: number) => _count + 1) | ||
} | ||
} |
Oops, something went wrong.
e2439b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
e2439b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
e2439b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
e2439b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally: