UNPKG

e2ed

Version:

E2E testing framework over Playwright

18 lines (17 loc) 654 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.renderScript = void 0; const client_1 = require("../client"); const renderScriptFunctions_1 = require("./renderScriptFunctions"); const renderScriptGlobals_1 = require("./renderScriptGlobals"); /** * Renders tag `<script>` with all report JavaScript code. * @internal */ const renderScript = () => (0, client_1.createSafeHtmlWithoutSanitize) ` <script async type="module"> ${(0, renderScriptGlobals_1.renderScriptGlobals)()}; ${(0, renderScriptFunctions_1.renderScriptFunctions)()}; ${client_1.initialScript.name}(); </script>`; exports.renderScript = renderScript;