415
GitHub - kentcdodds/js-testing-fundamentals
source link: https://github.com/kentcdodds/js-testing-fundamentals
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
JavaScript Testing Fundamentals
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
.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK