feat: establish TypeScript-aware frontend tooling
This commit is contained in:
@@ -36,6 +36,7 @@ describe("external AuthSessionPort adapter", () => {
|
||||
beginSignIn: async () => {},
|
||||
signOut: async () => {},
|
||||
attachCredential: async (request) => request,
|
||||
// @ts-expect-error Deliberately violates the external-owner contract.
|
||||
recoverSession: async () => "unexpected",
|
||||
notifyUnauthenticated: vi.fn(),
|
||||
});
|
||||
@@ -57,7 +58,7 @@ describe("external AuthSessionPort adapter", () => {
|
||||
});
|
||||
|
||||
expect(adapter.getState()).toBe("unauthenticated");
|
||||
await adapter.beginSignIn("/");
|
||||
await adapter.beginSignIn();
|
||||
expect(adapter.getState()).toBe("authenticated");
|
||||
await adapter.signOut();
|
||||
expect(adapter.getState()).toBe("unauthenticated");
|
||||
|
||||
Reference in New Issue
Block a user