Skip to content

Commit

Permalink
chore: update cypress to v10 (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored Jul 21, 2022
1 parent 51624e3 commit ff6a485
Show file tree
Hide file tree
Showing 14 changed files with 103 additions and 117 deletions.
19 changes: 19 additions & 0 deletions apps/cart-e2e/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineConfig } from 'cypress';
import { nxE2EPreset } from '@nrwl/cypress/plugins/cypress-preset';

const cypressJsonConfig = {
fileServerFolder: '.',
fixturesFolder: './src/fixtures',
video: true,
videosFolder: '../../dist/cypress/apps/cart-e2e/videos',
screenshotsFolder: '../../dist/cypress/apps/cart-e2e/screenshots',
chromeWebSecurity: false,
specPattern: 'src/e2e/**/*.cy.{js,jsx,ts,tsx}',
supportFile: false,
};
export default defineConfig({
e2e: {
...nxE2EPreset(__dirname),
...cypressJsonConfig,
},
});
11 changes: 0 additions & 11 deletions apps/cart-e2e/cypress.json

This file was deleted.

5 changes: 3 additions & 2 deletions apps/cart-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"e2e": {
"executor": "@nrwl/cypress:cypress",
"options": {
"cypressConfig": "apps/cart-e2e/cypress.json",
"devServerTarget": "cart:serve"
"cypressConfig": "apps/cart-e2e/cypress.config.ts",
"devServerTarget": "cart:serve",
"testingType": "e2e"
},
"configurations": {
"production": {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/cart-e2e/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"allowJs": true,
"types": ["cypress", "node"]
},
"include": ["src/**/*.ts", "src/**/*.js"]
"include": ["src/**/*.ts", "src/**/*.js", "cypress.config.ts"]
}
19 changes: 19 additions & 0 deletions apps/products-e2e/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineConfig } from 'cypress';
import { nxE2EPreset } from '@nrwl/cypress/plugins/cypress-preset';

const cypressJsonConfig = {
fileServerFolder: '.',
fixturesFolder: './src/fixtures',
video: true,
videosFolder: '../../dist/cypress/apps/products-e2e/videos',
screenshotsFolder: '../../dist/cypress/apps/products-e2e/screenshots',
chromeWebSecurity: false,
specPattern: 'src/e2e/**/*.cy.{js,jsx,ts,tsx}',
supportFile: false,
};
export default defineConfig({
e2e: {
...nxE2EPreset(__dirname),
...cypressJsonConfig,
},
});
11 changes: 0 additions & 11 deletions apps/products-e2e/cypress.json

This file was deleted.

5 changes: 3 additions & 2 deletions apps/products-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"e2e": {
"executor": "@nrwl/cypress:cypress",
"options": {
"cypressConfig": "apps/products-e2e/cypress.json",
"devServerTarget": "products:serve"
"cypressConfig": "apps/products-e2e/cypress.config.ts",
"devServerTarget": "products:serve",
"testingType": "e2e"
},
"configurations": {
"production": {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/products-e2e/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"allowJs": true,
"types": ["cypress", "node"]
},
"include": ["src/**/*.ts", "src/**/*.js"]
"include": ["src/**/*.ts", "src/**/*.js", "cypress.config.ts"]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"@types/react-router-dom": "5.3.3",
"@typescript-eslint/eslint-plugin": "5.30.7",
"@typescript-eslint/parser": "5.30.7",
"cypress": "^8.3.0",
"cypress": "^10.2.0",
"dotenv": "10.0.0",
"eslint": "8.15.0",
"eslint-config-prettier": "8.1.0",
Expand Down
Loading

0 comments on commit ff6a485

Please sign in to comment.