Skip to content

Commit d166e56

Browse files
committed
test(tui): stabilize runtime import order
1 parent 9f53f32 commit d166e56

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/plugin/src/tui/tui-compiled-runtime-imports.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ describe("compiled TUI runtime imports", () => {
4949
* Built from the shared list so the test cannot cover fewer modules than the
5050
* build rewrites. */
5151
async function loadExportSets(): Promise<Record<string, Set<string>>> {
52+
// @opentui/core/testing subclasses a core export during module initialization;
53+
// warm core before the parallel imports so Bun cannot expose its TDZ.
54+
await import("@opentui/core");
5255
const entries = await Promise.all(
5356
TUI_RUNTIME_SPECIFIERS.map(
5457
async (specifier) =>

0 commit comments

Comments
 (0)