415

GitHub - kentcdodds/js-testing-fundamentals

 5 years ago
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:

  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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK