Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/deploy.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ describe("deployment headers", () => {
await readdir(new URL("../dist", import.meta.url))
);
assert.ok(version !== undefined, "dist has no versioned SRI directory");
assert.match(
firstLine(
await readFile(new URL("../dist/latest/latest.js", import.meta.url))
),
new RegExp(`; v${version}\\) \\*/$`),
"SRI directory version must match dist/latest/latest.js"
);
const files = createManifest(
{
destinations: ["cdn", "custom"],
Expand Down
Loading