Files
suaveplan/packages/api-stack/api/api-plugin-auth/src/services/auth-service.spec-conformance.test.ts
2026-05-27 23:29:53 +01:00

16 lines
596 B
TypeScript

import type { ServiceRegistry } from "@suaveplan/api-plugin/service-registry";
import { describe, expectTypeOf, it } from "@suaveplan/testing/runner";
import type { AuthService } from "./auth-service.js";
// Pull in the registry-augmentation as a side effect so the slot is
// declared at type-check time.
import "./registry-augmentation.js";
describe("ServiceRegistry slot conformance", () => {
it("ServiceRegistry slot typed as AuthService", { timeout: 5000 }, () => {
expectTypeOf<
ServiceRegistry["authService"]
>().toEqualTypeOf<AuthService>();
});
});