JavaScript Testing Fundamentals

Learn how automated JavaScript testing works by building your own framework!


Order of material:

  1. simple.js
  2. assertion-library.js
  3. testing-framework.js
  4. async-await.js
  5. globals.js
  6. jest.test.js

The files are intended to test the math module.

To run the files, run node lessons/<lesson-filename>.js.

For the global one, run node -r ./setup-globals.js ./lessons/globals.js

For the jest.test.js one, run npx jest.