Skip to content

Commit 5be923c

Browse files
committed
feat(*): upgrade cypress
1 parent f3be3ee commit 5be923c

18 files changed

Lines changed: 75 additions & 120 deletions

File tree

apps/testing/17-router/cypress/support/commands.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,3 @@ declare global {
2323
}
2424

2525
Cypress.Commands.add('mount', mount);
26-
27-
//
28-
// -- This is a parent command --
29-
Cypress.Commands.add('login', (email, password) => {
30-
console.log('Custom command example: Login', email, password);
31-
});
32-
//
33-
// -- This is a child command --
34-
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
35-
//
36-
//
37-
// -- This is a dual command --
38-
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
39-
//
40-
//
41-
// -- This will overwrite an existing command --
42-
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })

apps/testing/17-router/project.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@
8282
"coverage": true
8383
}
8484
}
85+
},
86+
"component-test": {
87+
"executor": "@nx/cypress:cypress",
88+
"options": {
89+
"cypressConfig": "apps/testing/17-router/cypress.config.ts",
90+
"testingType": "component",
91+
"skipServe": true,
92+
"devServerTarget": "testing-router:build"
93+
}
8594
}
8695
}
8796
}

apps/testing/17-router/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"path": "./tsconfig.editor.json"
2323
},
2424
{
25-
"path": "./cypress/tsconfig.base.json"
25+
"path": "./cypress/tsconfig.json"
2626
}
2727
],
2828
"extends": "../../../tsconfig.base.json",

apps/testing/18-nested-components/cypress/support/commands.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,3 @@ declare global {
2323
}
2424

2525
Cypress.Commands.add('mount', mount);
26-
27-
//
28-
// -- This is a parent command --
29-
Cypress.Commands.add('login', (email, password) => {
30-
console.log('Custom command example: Login', email, password);
31-
});
32-
//
33-
// -- This is a child command --
34-
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
35-
//
36-
//
37-
// -- This is a dual command --
38-
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
39-
//
40-
//
41-
// -- This will overwrite an existing command --
42-
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })

apps/testing/18-nested-components/project.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@
8282
"coverage": true
8383
}
8484
}
85+
},
86+
"component-test": {
87+
"executor": "@nx/cypress:cypress",
88+
"options": {
89+
"cypressConfig": "apps/testing/18-nested-components/cypress.config.ts",
90+
"testingType": "component",
91+
"skipServe": true,
92+
"devServerTarget": "testing-nested-components:build"
93+
}
8594
}
8695
}
8796
}

apps/testing/18-nested-components/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"path": "./tsconfig.editor.json"
2323
},
2424
{
25-
"path": "./cypress/tsconfig.base.json"
25+
"path": "./cypress/tsconfig.json"
2626
}
2727
],
2828
"extends": "../../../tsconfig.base.json",

apps/testing/19-input-output/cypress/support/commands.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,3 @@ declare global {
2323
}
2424

2525
Cypress.Commands.add('mount', mount);
26-
27-
//
28-
// -- This is a parent command --
29-
Cypress.Commands.add('login', (email, password) => {
30-
console.log('Custom command example: Login', email, password);
31-
});
32-
//
33-
// -- This is a child command --
34-
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
35-
//
36-
//
37-
// -- This is a dual command --
38-
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
39-
//
40-
//
41-
// -- This will overwrite an existing command --
42-
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })

apps/testing/19-input-output/project.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@
8282
"coverage": true
8383
}
8484
}
85+
},
86+
"component-test": {
87+
"executor": "@nx/cypress:cypress",
88+
"options": {
89+
"cypressConfig": "apps/testing/19-input-output/cypress.config.ts",
90+
"testingType": "component",
91+
"skipServe": true,
92+
"devServerTarget": "testing-input-output:build"
93+
}
8594
}
8695
}
8796
}

apps/testing/19-input-output/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"path": "./tsconfig.editor.json"
2323
},
2424
{
25-
"path": "./cypress/tsconfig.base.json"
25+
"path": "./cypress/tsconfig.json"
2626
}
2727
],
2828
"extends": "../../../tsconfig.base.json",

apps/testing/20-modal/cypress/support/commands.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,3 @@ declare global {
2323
}
2424

2525
Cypress.Commands.add('mount', mount);
26-
27-
//
28-
// -- This is a parent command --
29-
Cypress.Commands.add('login', (email, password) => {
30-
console.log('Custom command example: Login', email, password);
31-
});
32-
//
33-
// -- This is a child command --
34-
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
35-
//
36-
//
37-
// -- This is a dual command --
38-
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
39-
//
40-
//
41-
// -- This will overwrite an existing command --
42-
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })

0 commit comments

Comments
 (0)