build: consolidate typed frontend module graph
This commit is contained in:
+2
-2
@@ -3,14 +3,14 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
import assert from "node:assert/strict";
|
||||
import { readFile } from "node:fs/promises";
|
||||
import test from "node:test";
|
||||
import vm from "node:vm";
|
||||
import { bundleEntry } from "./bundle-entry.mjs";
|
||||
|
||||
test("plugin runtime queues lazy decoder traffic and flushes in order on registration", async () => {
|
||||
const window = {};
|
||||
const context = vm.createContext({ window, Map, Error });
|
||||
const source = await readFile(new URL("../../assets/web/generated/plugin-runtime.js", import.meta.url), "utf8");
|
||||
const source = await bundleEntry(new URL("../src/plugin-runtime.ts", import.meta.url));
|
||||
new vm.Script(source).runInContext(context);
|
||||
|
||||
assert.equal(window.trxPluginRuntime.dispatch("late", { sequence: 1 }), false);
|
||||
|
||||
Reference in New Issue
Block a user