console: Halt collecting the E2E tests code coverage CON-203

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4510
GitOrigin-RevId: 2fff40627278e6e8eb48bc4d466ce499e7669ca7
This commit is contained in:
Stefano Magni 2022-06-16 18:17:17 +02:00 committed by hasura-bot
parent 21f9a614d2
commit d769800086

View File

@ -15,28 +15,3 @@
// Import commands.js using ES2015 syntax:
import './commands';
const istanbul = require('istanbul-lib-coverage');
const map = istanbul.createCoverageMap({});
Cypress.on('window:before:unload', e => {
const coverage = e.currentTarget.__coverage__;
if (coverage) {
map.merge(coverage);
}
});
after(() => {
cy.window().then(win => {
const coverage = win.__coverage__;
if (coverage) {
map.merge(coverage);
}
cy.writeFile('.nyc_output/out.json', JSON.stringify(map));
cy.exec('nyc report --reporter=html');
});
});