Initial Commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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>();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user