Learn how automated JavaScript testing works by building your own framework!
Order of material:
simple.js
assertion-library.js
testing-framework.js
async-await.js
globals.js
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, runnode -r ./setup-globals.js ./lessons/globals.js
For the
jest.test.js
one, runnpx jest
.