-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(webpack-dev-server): handle polyfills array for upcoming angular …
…15 change (#24064) Co-authored-by: Zachary Williams <[email protected]>
- Loading branch information
Showing
8 changed files
with
5,887 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "angular-15", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"ng": "ng", | ||
"start": "ng serve", | ||
"build": "ng build", | ||
"watch": "ng build --watch --configuration development" | ||
}, | ||
"dependencies": { | ||
"@angular/animations": "^15.0.0-next.4", | ||
"@angular/common": "^15.0.0-next.4", | ||
"@angular/compiler": "^15.0.0-next.4", | ||
"@angular/core": "^15.0.0-next.4", | ||
"@angular/forms": "^15.0.0-next.4", | ||
"@angular/platform-browser": "^15.0.0-next.4", | ||
"@angular/platform-browser-dynamic": "^15.0.0-next.4", | ||
"@angular/router": "^15.0.0-next.4", | ||
"rxjs": "~7.5.0", | ||
"tslib": "^2.3.0", | ||
"zone.js": "~0.11.4" | ||
}, | ||
"devDependencies": { | ||
"@angular-devkit/build-angular": "^15.0.0-next.3", | ||
"@angular/cli": "~15.0.0-next.3", | ||
"@angular/compiler-cli": "^15.0.0-next.4", | ||
"typescript": "~4.8.4" | ||
}, | ||
"projectFixtureDirectory": "angular" | ||
} |
21 changes: 21 additions & 0 deletions
21
system-tests/projects/angular-15/src/app/components/standalone.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,21 @@ | ||
import { StandaloneComponent } from './standalone.component' | ||
|
||
describe('StandaloneComponent', () => { | ||
it('can mount a standalone component', () => { | ||
cy.mount(StandaloneComponent, { | ||
componentProperties: { | ||
name: 'Angular', | ||
}, | ||
}) | ||
|
||
cy.get('h1').contains('Hello Angular') | ||
}) | ||
|
||
it('can mount a standalone component using template', () => { | ||
cy.mount('<app-standalone name="Angular"></app-standalone>', { | ||
imports: [StandaloneComponent], | ||
}) | ||
|
||
cy.get('h1').contains('Hello Angular') | ||
}) | ||
}) |
10 changes: 10 additions & 0 deletions
10
system-tests/projects/angular-15/src/app/components/standalone.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,10 @@ | ||
import { Component, Input } from '@angular/core' | ||
|
||
@Component({ | ||
standalone: true, | ||
selector: 'app-standalone', | ||
template: `<h1>Hello {{ name }}</h1>`, | ||
}) | ||
export class StandaloneComponent { | ||
@Input() name!: string | ||
} |
Oops, something went wrong.
0976034
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 platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.
Run this command to install the pre-release locally: