"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.boot = void 0;
const jsdom_1 = require("jsdom");
const SYSTEM_ROOT_ID_1 = require("../../SYSTEM_ROOT_ID");
const boot_1 = require("../web/boot");
function boot() {
    const { window } = new jsdom_1.JSDOM(`<div id="${SYSTEM_ROOT_ID_1.SYSTEM_ROOT_ID}"></div>`, {
        url: 'http://localhost/',
    });
    const root = window.document.getElementById(SYSTEM_ROOT_ID_1.SYSTEM_ROOT_ID);
    window.fetch = fetch;
    window.HTMLCanvasElement.prototype.getContext = () => null;
    // @ts-ignore
    return (0, boot_1.webBoot)(window, root);
}
exports.boot = boot;
//# sourceMappingURL=boot.js.map