@revoloo/cypress6
Version:
Cypress.io end to end testing tool
17 lines (11 loc) • 356 B
JavaScript
/* eslint-env mocha */
const { renderTestingPlatform } = require('./renderTestingPlatform')
let headInnerHTML = document.head.innerHTML
beforeEach(() => {
renderTestingPlatform(headInnerHTML)
})
before(() => {
// after the root imports are done
const document = cy.state('document')
headInnerHTML = document.head && document.head.innerHTML
})