UNPKG

cypress-rspack-dev-server

Version:
14 lines (13 loc) 484 B
"use strict"; /* eslint-env browser */ Object.defineProperty(exports, "__esModule", { value: true }); exports.init = init; function init(importPromises, parent = window.opener || window.parent) { // @ts-expect-error const Cypress = (window.Cypress = parent.Cypress); if (!Cypress) { throw new Error('Tests cannot run without a reference to Cypress!'); } Cypress.onSpecWindow(window, importPromises); Cypress.action('app:window:before:load', window); }