• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

snatalenko / node-cqrs / 21645374105

03 Feb 2026 07:52PM UTC coverage: 84.53% (-9.9%) from 94.396%
21645374105

Pull #28

github

web-flow
Merge 2650d0e58 into 828e39903
Pull Request #28: TypeScript and event dispatching pipeline refactoring

611 of 939 branches covered (65.07%)

817 of 932 new or added lines in 65 files covered. (87.66%)

59 existing lines in 13 files now uncovered.

1213 of 1435 relevant lines covered (84.53%)

28.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/workers/protocol.ts
1
import type { MessagePort } from 'node:worker_threads';
2

3
export interface IWorkerData {
4
        projectionPort: MessagePort,
5
        viewPort: MessagePort
6
}
7

8
export const isWorkerData = (obj: unknown): obj is IWorkerData =>
2✔
NEW
9
        typeof obj === 'object'
×
10
        && obj !== null
11
        && 'projectionPort' in obj
12
        && !!obj.projectionPort
13
        && 'viewPort' in obj
14
        && !!obj.viewPort;
15

16
export type WorkerInitMessage = { type: 'ready' };
17

18
export const isWorkerInitMessage = (msg: unknown): msg is WorkerInitMessage =>
2✔
19
        typeof msg === 'object'
14✔
20
        && msg !== null
21
        && 'type' in msg
22
        && msg.type === 'ready';
23

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc