Skip to content

Commit 0aeee0c

Browse files
committed
chore: migrate to cypress 12
1 parent a37fb72 commit 0aeee0c

40 files changed

+170
-109
lines changed

cypress/config/all.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
video: false,
5+
e2e: {
6+
baseUrl: 'http://localhost:3000',
7+
},
8+
})

cypress/config/all.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

cypress/config/canary.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
e2e: {
5+
baseUrl: 'http://localhost:3000',
6+
// integrationFolder was replaced by specPattern in Cypress 12 https://docs.cypress.io/guides/references/migration-guide#integrationFolder
7+
"specPattern": "cypress/e2e/canary",
8+
"projectId": "5zbkdv"
9+
},
10+
})

cypress/config/canary.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

cypress/config/ci.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
e2e: {
5+
baseUrl: 'http://localhost:3000',
6+
// integrationFolder was replaced by specPattern in Cypress 12 https://docs.cypress.io/guides/references/migration-guide#integrationFolder
7+
"specPattern": "cypress/e2e/default",
8+
"projectId": "66va58"
9+
},
10+
})

cypress/config/ci.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

cypress/config/middleware.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
e2e: {
5+
baseUrl: 'http://localhost:8888',
6+
// integrationFolder was replaced by specPattern in Cypress 12 https://docs.cypress.io/guides/references/migration-guide#integrationFolder
7+
"specPattern": "cypress/e2e/middleware",
8+
"projectId": "yn8qwi"
9+
},
10+
})

cypress/config/middleware.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

cypress/config/nx-demo.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
e2e: {
5+
baseUrl: 'http://localhost:4200',
6+
// integrationFolder was replaced by specPattern in Cypress 12 https://docs.cypress.io/guides/references/migration-guide#integrationFolder
7+
"specPattern": "cypress/e2e/nx",
8+
"projectId": "ijcdpo"
9+
},
10+
})

cypress/config/nx-demo.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

cypress/config/static-root.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
e2e: {
5+
baseUrl: 'http://localhost:3000',
6+
// integrationFolder was replaced by specPattern in Cypress 12 https://docs.cypress.io/guides/references/migration-guide#integrationFolder
7+
"specPattern": "cypress/e2e/static-root",
8+
"projectId": "3tvrbe"
9+
},
10+
})
11+

cypress/config/static-root.json

Lines changed: 0 additions & 5 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

demos/nx-next-monorepo-demo/package-lock.json

Lines changed: 29 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/nx-next-monorepo-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@typescript-eslint/eslint-plugin": "^5.36.1",
3636
"@typescript-eslint/parser": "^5.36.1",
3737
"babel-jest": "28.1.3",
38-
"cypress": "^10.7.0",
38+
"cypress": "^12.10.0",
3939
"eslint": "~8.15.0",
4040
"eslint-config-next": "12.3.4",
4141
"eslint-config-prettier": "8.8.0",

0 commit comments

Comments
 (0)