1.3.3 • Published 2 years ago

@paulshryock/testing-react-components v1.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Testing React Components

Getting started

npm ci
npm start

File structure

.
├── config  // Configuration files.
├── docs    // Documentation.
├── src     // Source code.
├── stories // Storybook stories.
└── tests   // Tests.

Running tests

npm test

 PASS  tests/app.test.js
 PASS  tests/components/Button.test.js
 PASS  tests/lib/sum.test.js
----------------|---------|----------|---------|---------|-------------------
File            | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------------|---------|----------|---------|---------|-------------------
All files       |   94.73 |      100 |      75 |   94.44 |
 js             |   91.66 |      100 |      50 |   91.66 |
  app.js        |      90 |      100 |      50 |      90 | 8
  components.js |     100 |      100 |     100 |     100 |
  lib.js        |     100 |      100 |     100 |     100 |
 js/components  |     100 |      100 |     100 |     100 |
  Button.js     |     100 |      100 |     100 |     100 |
 js/lib         |     100 |      100 |     100 |     100 |
  sum.js        |     100 |      100 |     100 |     100 |
----------------|---------|----------|---------|---------|-------------------

Test Suites: 3 passed, 3 total
Tests:       9 passed, 9 total
Snapshots:   0 total
Time:        1.363 s
Ran all test suites.