Skip to content
Merged
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
4 changes: 3 additions & 1 deletion desktop-app/tests/previewRuntime.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ it('rejects an unsigned preview backend before executing it or updating it', asy
const runtime = await fixture(ready);
const backend = new Backend(true, runtime);
await backend.connect();
expect(backend.current.state).toBe('error');
// macOS codesign rejects the unsigned fixture; CI's Linux runner has no codesign (ENOENT, which
// reads as a missing runtime). Either way the backend must refuse it without executing it.
expect(backend.current.state).toBe(process.platform === 'darwin' ? 'error' : 'missing');
await expect(readFile(path.join(runtime.directory, 'connection.json'))).rejects.toThrow();
await expect(backend.install('unused')).rejects.toThrow('Rebuild the local preview');
});
Expand Down
Loading