T-29: lint:check fails on existing issues, so bun run check (M0 exit criterion 1) can't go green
This commit is contained in:
parent
88023ba643
commit
1720e45f70
5 changed files with 43 additions and 31 deletions
4
libs/core/cache/test/redis-cache.test.ts
vendored
4
libs/core/cache/test/redis-cache.test.ts
vendored
|
|
@ -42,7 +42,9 @@ describe.skipIf(!testRedisUrl)('RedisCache', () => {
|
|||
});
|
||||
|
||||
afterEach(async () => {
|
||||
if (!cache) return;
|
||||
if (!cache) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
await cache.clear();
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ import { Shutdown } from '../src/shutdown';
|
|||
|
||||
// These tests use the real `process` listener registry (no stubs) because the
|
||||
// regression being guarded is listeners leaking across test files in one bun process.
|
||||
const SIGNALS = ['SIGTERM', 'SIGINT'] as const;
|
||||
type TrackedSignal = 'SIGTERM' | 'SIGINT';
|
||||
|
||||
function listenerCounts(): Record<(typeof SIGNALS)[number], number> {
|
||||
function listenerCounts(): Record<TrackedSignal, number> {
|
||||
return {
|
||||
SIGTERM: process.listenerCount('SIGTERM'),
|
||||
SIGINT: process.listenerCount('SIGINT'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue