Skip to content

Commit de13ec9

Browse files
committed
add comment clarifying why the assertion is needed
1 parent 73834df commit de13ec9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/watchCases/cache/stale-runtime-chunk-filename-map/0/service-worker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@ it("should update the runtime chunk filename map on rebuild", () => {
1414
expect(currentChunkFile).not.toBe(STATE.previousChunkFile);
1515
}
1616

17+
// We need this emitted-source assertion because an incorrect hash order may
18+
// still produce a new build, but a wrong one. Check the emitted source to
19+
// ensure the new chunk filename is actually referenced by service-worker.js.
1720
expect(serviceWorkerSource).toContain(currentChunkFile);
1821
});

0 commit comments

Comments
 (0)