Skip to content
Open
Show file tree
Hide file tree
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
9 changes: 9 additions & 0 deletions main/src/core/importBoundary.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,13 @@ describe('daemon/client import boundary', () => {
expect(source, relativePath).not.toContain('mainWindow');
}
});

it('keeps the daemon server free of Electron bootstrap imports', () => {
const source = readMainSrcFile('daemon/server.ts');

expect(source).not.toContain("from 'electron'");
expect(source).not.toContain('mainWindow');
expect(source).not.toMatch(/from ['"](?:\.\.\/)+(?:index)['"]/);
expect(source).not.toMatch(/from ['"](?:\.\.\/)+(?:index)\.ts['"]/);
});
});
Loading