-
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: lint system tests in CI (#25673)
- Loading branch information
Showing
138 changed files
with
1,376 additions
and
1,276 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# purposeful syntax errors | ||
system-tests/projects/config-with-ts-module-error/cypress.config.ts | ||
system-tests/projects/config-with-ts-syntax-error/cypress.config.ts | ||
system-tests/projects/e2e/cypress/e2e/stdout_exit_early_failing.cy.js | ||
system-tests/projects/e2e/cypress/e2e/typescript_syntax_error.cy.ts | ||
system-tests/projects/e2e/lib/fail.js | ||
system-tests/projects/e2e/static/fail.js | ||
system-tests/projects/ids/cypress/e2e/dom.jsx | ||
system-tests/projects/no-specs/src/Invalid.jsx | ||
system-tests/projects/todos/tests/_fixtures/bad_js.js | ||
system-tests/projects/todos/tests/_fixtures/bar.js | ||
system-tests/projects/todos/tests/_fixtures/foo.js | ||
system-tests/projects/todos/tests/_fixtures/nested/fixture.js | ||
system-tests/projects/todos/tests/_fixtures/no_format.js | ||
system-tests/projects/todos/tests/_fixtures/trailing_new_line.js | ||
system-tests/projects/todos/tests/_fixtures/user.js | ||
system-tests/project-fixtures/react/src/AppCompilationError.cy.jsx | ||
|
||
# 3rd party | ||
system-tests/projects/e2e/static/jquery.js | ||
|
||
# snapshots | ||
system-tests/projects/pristine/expected-cypress-js-component-create-react-app-v5/cypress.config.js | ||
system-tests/projects/pristine/expected-cypress-js-e2e/cypress.config.js | ||
system-tests/projects/pristine/expected-cypress-js-e2e-without-fixtures/cypress.config.js | ||
system-tests/projects/pristine-module/expected-cypress-js-e2e/cypress.config.js | ||
system-tests/projects/pristine-cjs-project/expected-cypress-js-component-vue.js-3-webpack/cypress.config.js |
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 |
---|---|---|
|
@@ -10,5 +10,8 @@ | |
}, | ||
"extends": [ | ||
"plugin:@cypress/dev/tests" | ||
] | ||
], | ||
"rules": { | ||
"no-console": "off" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -8,5 +8,4 @@ declare global { | |
} | ||
} | ||
|
||
|
||
Cypress.Commands.add('mount', mount); | ||
Cypress.Commands.add('mount', mount) |
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
6 changes: 3 additions & 3 deletions
6
system-tests/project-fixtures/angular/src/app/components/button-output.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { Component, EventEmitter, Output } from "@angular/core"; | ||
import { Component, EventEmitter, Output } from '@angular/core' | ||
|
||
@Component({ | ||
selector: 'app-button-output', | ||
template: `<button (click)="clicked.emit(true)">Click Me</button>` | ||
template: `<button (click)="clicked.emit(true)">Click Me</button>`, | ||
}) | ||
export class ButtonOutputComponent { | ||
@Output() clicked: EventEmitter<boolean> = new EventEmitter() | ||
} | ||
} |
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
6 changes: 3 additions & 3 deletions
6
system-tests/project-fixtures/angular/src/app/components/child.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
12 changes: 6 additions & 6 deletions
12
system-tests/project-fixtures/angular/src/app/components/counter.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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import { Component } from "@angular/core"; | ||
import { CounterService } from "./counter.service"; | ||
import { Component } from '@angular/core' | ||
import { CounterService } from './counter.service' | ||
|
||
@Component({ | ||
selector: "counter-component", | ||
selector: 'counter-component', | ||
template: `<button (click)="increment()"> | ||
Increment: {{ count$ | async }} | ||
</button>`, | ||
}) | ||
export class CounterComponent { | ||
count$ = this.counterService.count$; | ||
|
||
constructor(private counterService: CounterService) {} | ||
constructor (private counterService: CounterService) {} | ||
|
||
increment() { | ||
this.counterService.increment(); | ||
increment () { | ||
this.counterService.increment() | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
system-tests/project-fixtures/angular/src/app/components/counter.service.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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Injectable } from "@angular/core"; | ||
import { BehaviorSubject } from "rxjs"; | ||
import { Injectable } from '@angular/core' | ||
import { BehaviorSubject } from 'rxjs' | ||
|
||
@Injectable() | ||
export class CounterService { | ||
private count = new BehaviorSubject<number>(0); | ||
public count$ = this.count.asObservable(); | ||
|
||
public increment() { | ||
this.count.next(this.count.value + 1); | ||
public increment () { | ||
this.count.next(this.count.value + 1) | ||
} | ||
} |
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
6 changes: 3 additions & 3 deletions
6
system-tests/project-fixtures/angular/src/app/components/logo.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { Component } from "@angular/core"; | ||
import { Component } from '@angular/core' | ||
|
||
@Component({ | ||
selector: 'app-logo', | ||
template: `<img src="assets/cypress-logo-light.png" />` | ||
template: `<img src="assets/cypress-logo-light.png" />`, | ||
}) | ||
export class LogoComponent {} | ||
export class LogoComponent {} |
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
6 changes: 3 additions & 3 deletions
6
system-tests/project-fixtures/angular/src/app/components/parent-providers.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from '@angular/core'; | ||
import { Component } from '@angular/core' | ||
|
||
@Component({ | ||
template: ` | ||
<app-child-providers></app-child-providers> | ||
<app-another-child></app-another-child>` | ||
<app-another-child></app-another-child>`, | ||
}) | ||
export class ParentProvidersComponent {} | ||
export class ParentProvidersComponent {} |
6 changes: 3 additions & 3 deletions
6
system-tests/project-fixtures/angular/src/app/components/parent.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { Component } from "@angular/core"; | ||
import { Component } from '@angular/core' | ||
|
||
@Component({ | ||
selector: "parent-component", | ||
selector: 'parent-component', | ||
template: '<child-component [msg]="msg"></child-component>', | ||
}) | ||
export class ParentComponent { | ||
msg = "Hello World from ParentComponent"; | ||
msg = 'Hello World from ParentComponent'; | ||
} |
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
Oops, something went wrong.
748f3a5
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:
748f3a5
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:
748f3a5
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:
748f3a5
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
win32 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:
748f3a5
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: