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

snatalenko / node-cqrs / 23323684713

20 Mar 2026 12:32AM UTC coverage: 98.066%. First build
23323684713

Pull #38

github

web-flow
Merge 8ff0f1e14 into a33b40157
Pull Request #38: New: Redis-backed projection views with distributed locking (experimental)

510 of 561 branches covered (90.91%)

176 of 206 new or added lines in 9 files covered. (85.44%)

1521 of 1551 relevant lines covered (98.07%)

41.82 hits per line

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

42.86
/src/redis/AbstractRedisProjection.ts
1
import type { IContainer } from 'node-cqrs';
2
import { AbstractProjection } from '../AbstractProjection.ts';
3✔
3
import { RedisView } from './RedisView.ts';
3✔
4

5
export abstract class AbstractRedisProjection<T> extends AbstractProjection<RedisView<T>> {
3✔
6

7
        static get tableName(): string {
NEW
8
                throw new Error('tableName is not defined');
×
9
        }
10

11
        static get schemaVersion(): string {
NEW
12
                throw new Error('schemaVersion is not defined');
×
13
        }
14

15
        constructor({ viewModelRedis, viewModelRedisFactory, logger }:
16
                Partial<Pick<IContainer, 'viewModelRedis' | 'viewModelRedisFactory' | 'logger'>>
17
        ) {
NEW
18
                super({ logger });
×
19

NEW
20
                this.view = new RedisView({
×
21
                        schemaVersion: new.target.schemaVersion,
22
                        projectionName: new.target.name,
23
                        viewModelRedis,
24
                        viewModelRedisFactory,
25
                        tableNamePrefix: new.target.tableName,
26
                        logger
27
                });
28
        }
29
}
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