Skip to content

Commit 61c3217

Browse files
committed
test(gateway): cover quoted lifecycle imports
1 parent 1c675de commit 61c3217

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/infra/tsdown-config.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ describe("tsdown config", () => {
109109
});
110110

111111
it("routes gateway run-loop lifecycle imports through the stable runtime boundary", () => {
112-
const importSpecifiers = [...readGatewayRunLoopSource().matchAll(/import\("([^"]+)"\)/gu)].map(
113-
(match) => match[1],
114-
);
112+
const importSpecifiers = [
113+
...readGatewayRunLoopSource().matchAll(/import\(["']([^"']+)["']\)/gu),
114+
].map((match) => match[1]);
115115

116116
expect(new Set(importSpecifiers)).toEqual(new Set(["./lifecycle.runtime.js"]));
117117
});

0 commit comments

Comments
 (0)