Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,17 @@ jobs:
run: npm run lint:check
- name: Check formatting (Prettier)
run: npm run format:check

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,24 @@ This project uses a combination of tools for code formatting and linting to ensu

These formatting checks are automatically enforced in the CI pipeline (see `.github/workflows/code-quality.yml`) to maintain code quality.

## Tests

Pour lancer la suite de tests unitaires :

```bash
npm test
```

Pour lancer les tests en mode interactif (watch) :

```bash
npm run test:watch
```

Les tests sont basés sur [Vitest](https://vitest.dev/) et [JSDOM](https://github.com/jsdom/jsdom). Ils couvrent les fonctionnalités principales de l’API publique.

Les tests sont également exécutés automatiquement via GitHub Actions à chaque push ou pull request sur la branche `main`.

## License

MIT
Loading
Loading