mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
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:
parent
21f9a614d2
commit
d769800086
@ -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');
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user