We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc95cbe commit 1fa46c8Copy full SHA for 1fa46c8
support.js
@@ -135,7 +135,10 @@ const registerHooks = () => {
135
// we should grab it once after all tests finish
136
const baseUrl = Cypress.config('baseUrl') || cy.state('window').origin
137
const runningEndToEndTests = baseUrl !== Cypress.config('proxyUrl')
138
- if (runningEndToEndTests) {
+ const specType = Cypress._.get(Cypress.spec, 'specType', 'integration')
139
+ const isIntegrationSpec = specType === 'integration'
140
+
141
+ if (runningEndToEndTests && isIntegrationSpec) {
142
// we can only request server-side code coverage
143
// if we are running end-to-end tests,
144
// otherwise where do we send the request?
0 commit comments