Skip to content

Commit 8a5ad6b

Browse files
fix(test): preserve preview export coverage
1 parent 49c8da9 commit 8a5ad6b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎apps/desktop/src/ipc/methods/preview.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ describe("preview IPC methods", () => {
3838
fromPartition.mockClear();
3939
});
4040

41+
it("does not access the Electron session while the module loads", async () => {
42+
await expect(import("./preview.ts")).resolves.toBeDefined();
43+
expect(fromPartition).not.toHaveBeenCalled();
44+
});
45+
4146
it("derives distinct partition scopes when identifiers contain the delimiter", () => {
4247
const first = PreviewIpc.resolvePartitionScope("a", "b::c");
4348
const second = PreviewIpc.resolvePartitionScope("a::b", "c");

0 commit comments

Comments
 (0)