feat: add display kiosk host
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"manifestVersion": 5,
|
||||
"manifestVersion": 6,
|
||||
"id": "example",
|
||||
"name": "Example",
|
||||
"version": "0.1.0",
|
||||
|
||||
@@ -56,7 +56,11 @@ function standaloneContext(requested: string[]): ModuleUiHostContext {
|
||||
describe("loading a real compiled artifact", () => {
|
||||
beforeAll(async () => {
|
||||
const result = await buildModuleUi({ moduleDirectory: fixtureDirectory });
|
||||
artifactSource = await readFile(result.outputFile, "utf8");
|
||||
const primaryArtifact = result.artifacts.find((artifact) => artifact.kind === "ui");
|
||||
if (!primaryArtifact) {
|
||||
throw new Error("The real-artifact fixture must declare a primary UI artifact.");
|
||||
}
|
||||
artifactSource = await readFile(primaryArtifact.outputFile, "utf8");
|
||||
artifactUrl = `data:text/javascript;base64,${Buffer.from(artifactSource, "utf8").toString("base64")}`;
|
||||
}, 60_000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user