Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TP1 - Introduction aux tests unitaires avec Jest

Ce repository contient la solution complète du TP avec Node.js + Jest.

Prerequisites

  • Node.js 18+
  • npm 9+

Installation

npm install

Run tests

npm test

Watch mode

npm run test:watch

Coverage

npm run test:coverage

Structure

  • src/: code source
  • tests/: tests unitaires Jest

Modules inclus :

  • greet.js / greet.test.js
  • calculator.js / calculator.test.js
  • emailValidator.js / emailValidator.test.js
  • cart.js / cart.test.js

Publication sur GitHub

  1. git init
  2. git add .
  3. git commit -m "TP1 Jest completed"
  4. Créer le repository GitHub
  5. git remote add origin <URL_DU_REPO>
  6. git push -u origin main

Notes

  • node_modules/ est exclu via .gitignore.
  • Les exercices 1 à 4 sont couverts.
  • Le bonus inclut des tests supplémentaires de couverture et de cas limites.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages