Skip to content

Commit 1fa46c8

Browse files
authored
fix: do not ask for backend code coverage from non-integration s… (#186)
1 parent fc95cbe commit 1fa46c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

support.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ const registerHooks = () => {
135135
// we should grab it once after all tests finish
136136
const baseUrl = Cypress.config('baseUrl') || cy.state('window').origin
137137
const runningEndToEndTests = baseUrl !== Cypress.config('proxyUrl')
138-
if (runningEndToEndTests) {
138+
const specType = Cypress._.get(Cypress.spec, 'specType', 'integration')
139+
const isIntegrationSpec = specType === 'integration'
140+
141+
if (runningEndToEndTests && isIntegrationSpec) {
139142
// we can only request server-side code coverage
140143
// if we are running end-to-end tests,
141144
// otherwise where do we send the request?

0 commit comments

Comments
 (0)