Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Nov 8, 2024
1 parent 878a33e commit ad5177e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/dev/builder_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as path from "@std/path";
import { Builder } from "./builder.ts";
import { App } from "../app.ts";
import { RemoteIsland } from "@marvinh-test/fresh-island";
import { BUILD_ID } from "../runtime/build_id.ts";

Deno.test({
name: "Builder - chain onTransformStaticFile",
Expand Down Expand Up @@ -114,7 +115,15 @@ Deno.test({
await builder.build(app);

const code = await Deno.readTextFile(
path.join(tmp, "dist", "static", "RemoteIsland.js"),
path.join(
tmp,
"dist",
"static",
"_fresh",
"js",
BUILD_ID,
"RemoteIsland.js",
),
);
expect(code).toContain('"remote-island"');
},
Expand Down

0 comments on commit ad5177e

Please sign in to comment.