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
22 lines
495 B
TypeScript
22 lines
495 B
TypeScript
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');
|
|
});
|
|
});
|