Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
import { render, screen, waitFor } from "@testing-library/react";
import StaleSessionSignOut from "@/components/StaleSessionSignOut";
describe("StaleSessionSignOut", () => {
it("clears the session on mount rather than only redirecting", async () => {
const signOutAction = vi.fn().mockResolvedValue(undefined);
render(<StaleSessionSignOut signOutAction={signOutAction} />);
await waitFor(() => expect(signOutAction).toHaveBeenCalled());
expect(screen.getByText(/signing you out/i)).toBeInTheDocument();
});
});