Configure l'environnement de développement complet avec Docker Compose, structure DDD 4 Bounded Contexts, et pipeline CI/CD GitHub Actions. Corrections compatibilité CI: - Symfony 8 nécessite monolog-bundle ^4.0 (la v3.x ne supporte que jusqu'à Symfony 7) - ESLint v9 nécessite flat config (eslint.config.js) - le format .eslintrc.cjs est obsolète
24 lines
594 B
TypeScript
24 lines
594 B
TypeScript
import { render, screen } from '@testing-library/svelte';
|
|
import { describe, expect, it } from 'vitest';
|
|
import Page from '../../src/routes/+page.svelte';
|
|
|
|
describe('Home Page', () => {
|
|
it('renders the welcome message', () => {
|
|
render(Page);
|
|
|
|
expect(screen.getByRole('heading', { name: 'Bienvenue sur Classeo' })).toBeTruthy();
|
|
});
|
|
|
|
it('renders the description', () => {
|
|
render(Page);
|
|
|
|
expect(screen.getByText('Application de gestion scolaire')).toBeTruthy();
|
|
});
|
|
|
|
it('starts counter at 0', () => {
|
|
render(Page);
|
|
|
|
expect(screen.getByText('Compteur: 0')).toBeTruthy();
|
|
});
|
|
});
|