Skip to content

Latest commit

 

History

History

jest

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

jest

Popular, simple and painless JavaScript testing tool, powered by Facebook inc.

  • Test runner assert library itself.
  • Support node or jsdom environment itself.
  • Support code coverage and rich reporters itself.
  • In general, jest is a powerfull JavaScript testing tool.

Get start

  1. cd jest

  2. npm install

  3. npm run test

Test result

 PASS  test/gretting.test.js
 PASS  test/jsdom.test.js
-------------|----------|----------|----------|----------|----------------|
File         |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
-------------|----------|----------|----------|----------|----------------|
All files    |      100 |      100 |    66.67 |      100 |                |
 greeting.js |      100 |      100 |      100 |      100 |                |
 jsdom.js    |      100 |      100 |       50 |      100 |                |
-------------|----------|----------|----------|----------|----------------|

Test Suites: 2 passed, 2 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        1.011s
Ran all test suites.

Documents

Author

TANG