Skip to content

Jest のカバレッジ種類を理解するサンプル

Notifications You must be signed in to change notification settings

oikwsat/jest-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jest Sample

install

yarn install

run test

yarn test
 PASS  ./sum.test.js
  ✓ adds 1 + 2 to equal 3 (2 ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        0.374 s
Ran all test suites.
✨  Done in 1.37s.

run coverage

yarn coverage
 PASS  ./sum.test.js
  ✓ adds 1 + 2 to equal 3 (2 ms)

----------|---------|----------|---------|---------|-------------------
File      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files |     100 |      100 |     100 |     100 |
 sum.js   |     100 |      100 |     100 |     100 |
----------|---------|----------|---------|---------|-------------------
Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        0.443 s, estimated 1 s
Ran all test suites.
✨  Done in 1.47s.

About

Jest のカバレッジ種類を理解するサンプル

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published