Skip to content

Commit c355fe4

Browse files
committed
fix(): cypress
1 parent c2f3cc3 commit c355fe4

File tree

8 files changed

+10
-19
lines changed

8 files changed

+10
-19
lines changed

apps/rxjs/14-race-condition/cypress.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ import { defineConfig } from 'cypress';
44
export default defineConfig({
55
component: {
66
...nxComponentTestingPreset(__filename),
7-
// Please ensure you use `cy.origin()` when navigating between domains and remove this option.
8-
// See https://docs.cypress.io/app/references/migration-guide#Changes-to-cyorigin
9-
injectDocumentDomain: true,
107
},
118
});

apps/rxjs/14-race-condition/project.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@
7979
"coverage": true
8080
}
8181
}
82+
},
83+
"component-test": {
84+
"executor": "@nx/cypress:cypress",
85+
"options": {
86+
"cypressConfig": "apps/rxjs/14-race-condition/cypress.config.ts",
87+
"testingType": "component",
88+
"skipServe": true,
89+
"devServerTarget": "testing-router:build"
90+
}
8291
}
8392
}
8493
}

apps/rxjs/14-race-condition/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/17-router/cypress.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ import { defineConfig } from 'cypress';
44
export default defineConfig({
55
component: {
66
...nxComponentTestingPreset(__filename),
7-
// Please ensure you use `cy.origin()` when navigating between domains and remove this option.
8-
// See https://docs.cypress.io/app/references/migration-guide#Changes-to-cyorigin
9-
injectDocumentDomain: true,
107
},
118
});

apps/testing/18-nested-components/cypress.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ import { defineConfig } from 'cypress';
44
export default defineConfig({
55
component: {
66
...nxComponentTestingPreset(__filename),
7-
// Please ensure you use `cy.origin()` when navigating between domains and remove this option.
8-
// See https://docs.cypress.io/app/references/migration-guide#Changes-to-cyorigin
9-
injectDocumentDomain: true,
107
},
118
});

apps/testing/19-input-output/cypress.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ import { defineConfig } from 'cypress';
44
export default defineConfig({
55
component: {
66
...nxComponentTestingPreset(__filename),
7-
// Please ensure you use `cy.origin()` when navigating between domains and remove this option.
8-
// See https://docs.cypress.io/app/references/migration-guide#Changes-to-cyorigin
9-
injectDocumentDomain: true,
107
},
118
});

apps/testing/20-modal/cypress.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ import { defineConfig } from 'cypress';
44
export default defineConfig({
55
component: {
66
...nxComponentTestingPreset(__filename),
7-
// Please ensure you use `cy.origin()` when navigating between domains and remove this option.
8-
// See https://docs.cypress.io/app/references/migration-guide#Changes-to-cyorigin
9-
injectDocumentDomain: true,
107
},
118
});

apps/testing/29-real-life-application/cypress.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ import { defineConfig } from 'cypress';
44
export default defineConfig({
55
component: {
66
...nxComponentTestingPreset(__filename),
7-
// Please ensure you use `cy.origin()` when navigating between domains and remove this option.
8-
// See https://docs.cypress.io/app/references/migration-guide#Changes-to-cyorigin
9-
injectDocumentDomain: true,
107
},
118
});

0 commit comments

Comments
 (0)