Add test cases for session revocation and update test coverage annotations

- Introduced unit tests for individual and bulk session revocation in `SessionsManager` with success callback assertions.
- Added `/* istanbul ignore */` annotations to metadata and design system pages covered by e2e tests.
This commit is contained in:
Felipe Cardoso
2025-11-19 14:38:46 +01:00
parent f02320e57c
commit d7b333385d
15 changed files with 73 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ const LoginForm = dynamic(
}
);
/* istanbul ignore next - Next.js metadata generation covered by e2e tests */
export async function generateMetadata({
params,
}: {

View File

@@ -25,6 +25,7 @@ const PasswordResetRequestForm = dynamic(
}
);
/* istanbul ignore next - Next.js metadata generation covered by e2e tests */
export async function generateMetadata({
params,
}: {

View File

@@ -18,6 +18,7 @@ const RegisterForm = dynamic(
}
);
/* istanbul ignore next - Next.js metadata generation covered by e2e tests */
export async function generateMetadata({
params,
}: {

View File

@@ -1,3 +1,4 @@
/* istanbul ignore file - Design system demo page covered by e2e tests */
/**
* Component Showcase Page
* Development-only page to preview all shadcn/ui components

View File

@@ -1,3 +1,4 @@
/* istanbul ignore file - Design system demo page covered by e2e tests */
/**
* Dynamic Documentation Route
* Renders markdown files from docs/ directory

View File

@@ -1,3 +1,4 @@
/* istanbul ignore file - Design system demo page covered by e2e tests */
/**
* Documentation Hub
* Central hub for all design system documentation

View File

@@ -1,3 +1,4 @@
/* istanbul ignore file - Design system demo page covered by e2e tests */
/**
* Form Patterns Demo
* Interactive demonstrations of form patterns with validation

View File

@@ -1,3 +1,4 @@
/* istanbul ignore file - Design system demo page covered by e2e tests */
/**
* Layout Patterns Demo
* Interactive demonstrations of essential layout patterns

View File

@@ -1,3 +1,4 @@
/* istanbul ignore file - Design system demo page covered by e2e tests */
/**
* Design System Hub
* Central landing page for all interactive design system demonstrations

View File

@@ -1,3 +1,4 @@
/* istanbul ignore file - Design system demo page covered by e2e tests */
/**
* Spacing Patterns Demo
* Interactive demonstrations of spacing philosophy and best practices

View File

@@ -4,6 +4,7 @@
import { redirect } from 'next/navigation';
/* istanbul ignore next - Next.js server-side redirect covered by e2e tests */
export default function RootPage() {
// Redirect to default locale (en)
redirect('/en');

View File

@@ -4,6 +4,7 @@ import { MetadataRoute } from 'next';
* Generate robots.txt
* Configures search engine crawler behavior
*/
/* istanbul ignore next - Next.js metadata route covered by e2e tests */
export default function robots(): MetadataRoute.Robots {
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000';

View File

@@ -5,6 +5,7 @@ import { routing } from '@/lib/i18n/routing';
* Generate multilingual sitemap
* Includes all public routes for each supported locale
*/
/* istanbul ignore next - Next.js metadata route covered by e2e tests */
export default function sitemap(): MetadataRoute.Sitemap {
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000';