File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -166,10 +166,11 @@ const registerHooks = () => {
166
166
const baseUrl = Cypress . config ( 'baseUrl' ) || cy . state ( 'window' ) . origin
167
167
// @ts -ignore
168
168
const runningEndToEndTests = baseUrl !== Cypress . config ( 'proxyUrl' )
169
+ const expectFrontendCoverageOnly = Cypress . _ . get ( Cypress . env ( 'codeCoverage' ) , 'expectFrontendCoverageOnly' , false )
169
170
const specType = Cypress . _ . get ( Cypress . spec , 'specType' , 'integration' )
170
171
const isIntegrationSpec = specType === 'integration'
171
172
172
- if ( runningEndToEndTests && isIntegrationSpec ) {
173
+ if ( ! expectFrontendCoverageOnly && runningEndToEndTests && isIntegrationSpec ) {
173
174
// we can only request server-side code coverage
174
175
// if we are running end-to-end tests,
175
176
// otherwise where do we send the request?
You can’t perform that action at this time.
0 commit comments