Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jest + CI Workshop (Graded)

Rules

  • Do NOT modify files inside src/
  • Write your tests inside tests/
  • CI must be green for evaluation

Task

  • Write Jest tests for: calculateFinalAmount(subtotal, coupon)
  • no coupon case
  • SAVE10 coupon
  • FLAT50 boundary case
  • invalid subtotal throws error
  • case-insensitive coupon
  • Add GitHub Actions CI to run npm test on push and PR

Run locally

npm install npm test

About

This is the starter repo for Jest Workshop

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages