feat: Setup projet Classeo avec infrastructure Docker et architecture DDD
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
This commit is contained in:
21
frontend/tests/unit/example.test.ts
Normal file
21
frontend/tests/unit/example.test.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
|
||||
describe('Math operations', () => {
|
||||
it('should add two numbers correctly', () => {
|
||||
expect(1 + 1).toBe(2);
|
||||
});
|
||||
|
||||
it('should multiply two numbers correctly', () => {
|
||||
expect(2 * 3).toBe(6);
|
||||
});
|
||||
});
|
||||
|
||||
describe('String operations', () => {
|
||||
it('should concatenate strings', () => {
|
||||
expect('Hello' + ' ' + 'World').toBe('Hello World');
|
||||
});
|
||||
|
||||
it('should convert to uppercase', () => {
|
||||
expect('classeo'.toUpperCase()).toBe('CLASSEO');
|
||||
});
|
||||
});
|
||||
23
frontend/tests/unit/page.test.ts
Normal file
23
frontend/tests/unit/page.test.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user