test: add published upgrade survivor lane (#75221)

* test: add published upgrade survivor lane

* test: keep published upgrade exit chunk
This commit is contained in:
Peter Steinberger
2026-05-01 00:39:50 +01:00
committed by GitHub
parent 919a68c64d
commit c0058fda2f
10 changed files with 52 additions and 9 deletions

View File

@@ -91,8 +91,10 @@ describe("runtime postbuild static assets", () => {
writeLegacyCliExitCompatChunks({ rootDir });
await expect(
fs.readFile(path.join(rootDir, "dist", "memory-state-CcqRgDZU.js"), "utf8"),
).resolves.toContain("function hasMemoryRuntime()");
for (const chunk of ["memory-state-CcqRgDZU.js", "memory-state-DwGdReW4.js"]) {
await expect(fs.readFile(path.join(rootDir, "dist", chunk), "utf8")).resolves.toContain(
"function hasMemoryRuntime()",
);
}
});
});