diff --git a/packages/core/src/compiler/compositionAssembly.test.ts b/packages/core/src/compiler/compositionAssembly.test.ts new file mode 100644 index 000000000..882b934f1 --- /dev/null +++ b/packages/core/src/compiler/compositionAssembly.test.ts @@ -0,0 +1,269 @@ +import { readFileSync } from "node:fs"; +import { dirname, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; +import { describe, expect, it } from "vitest"; +import { + enumerateNestedCompositionHosts, + MAX_SUB_COMPOSITION_DEPTH, + planCompositionAssembly, + type CompositionAssemblyPlan, +} from "./compositionAssembly"; + +function parseComposition(html: string): Document { + return new DOMParser().parseFromString(html, "text/html"); +} + +/** + * Drive the module the way both real paths do: find the `