Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Failing after 9m19s
Fixed missing types, import errors, and updated test suites to match the new editorial design. Verified Docker container build.
24 lines
564 B
TypeScript
24 lines
564 B
TypeScript
import { render, screen } from '@testing-library/react';
|
|
import NotFound from '@/app/not-found';
|
|
|
|
// Mock next/navigation
|
|
jest.mock('next/navigation', () => ({
|
|
useRouter: () => ({
|
|
back: jest.fn(),
|
|
push: jest.fn(),
|
|
}),
|
|
}));
|
|
|
|
// Mock next-intl
|
|
jest.mock('next-intl', () => ({
|
|
useLocale: () => 'en',
|
|
useTranslations: () => (key: string) => key,
|
|
}));
|
|
|
|
describe('NotFound', () => {
|
|
it('renders the 404 page with the new design text', () => {
|
|
render(<NotFound />);
|
|
expect(screen.getByText("Lost in the Liquid.")).toBeInTheDocument();
|
|
});
|
|
});
|