FakeNotificationRuntime — @gj-kit/nest-notifications
@gj-kit/nest-notifications/testing에서 공개하는 interface입니다. package version 0.1.1의 release declaration을 그대로 표시합니다.
검증된 import 예제
섹션 제목: “검증된 import 예제”import { FakeNotificationRuntime } from '@gj-kit/nest-notifications/testing';시그니처, 매개변수, 반환 타입
섹션 제목: “시그니처, 매개변수, 반환 타입”/** * 결정적 런타임 — 시계·claim 토큰·defer를 전부 테스트가 소유한다. * * 소스의 wakeup 스펙은 실제로 `realSetTimeout(5ms)`로 기다렸다. 여기서는 `flush()`가 그 * 대기를 없앤다 — 그것이 `defer`를 포트로 만든 이유이기도 하다(설계 §0.2-⑫). */interface FakeNotificationRuntime extends NotificationRuntime { /** Moves the clock forward. Deferred work is not run by this call. */ advance(ms: number): void; /** Runs every deferred callback synchronously, including ones they enqueue. */ flush(): void;}이 선언은 매개변수, optionality, 제네릭, 반환값, 공개 union/type 계약의 정본입니다. 호출 전 필요한 환경·권한·오류 경계는 패키지 Golden path와 이 subpath의 import 조건을 함께 확인하세요.
Release context
섹션 제목: “Release context”- 패키지:
@gj-kit/nest-notifications - 버전:
0.1.1 - 공개 entry:
./testing - 소스: GitHub
구현 주석
섹션 제목: “구현 주석”결정적 런타임 — 시계·claim 토큰·defer를 전부 테스트가 소유한다.
소스의 wakeup 스펙은 실제로 realSetTimeout(5ms)로 기다렸다. 여기서는 flush()가 그
대기를 없앤다 — 그것이 defer를 포트로 만든 이유이기도 하다(설계 §0.2-⑫).