isolate-react
TypeScript icon, indicating that this package has built-in type declarations

2.4.7 • Public • Published

Test-drive react components and hooks

isolate-react is the missing tool for test-driving your react components.

It's focused on speed and simplicity, has zero dependencies, doesn't require a DOM emulator, and supports any test runner.

Flexible support for whatever level of testing you prefer:

  • [x] Test react hooks
  • [x] Render a single component at a time (isolated/unit testing)
  • [x] Render multiple components toegether (integrated testing)

Low -friction:

  • [x] No virtual DOM or other tools to install
  • [x] Works with any test runner that runs in node (jest, mocha, tape, tap, etc.)
  • [x] Full hook support
  • [x] Easy access to set context values for testing
  • [x] Very fast

Render react components in isolation

  • [x] functional components that use hooks
  • [x] class components

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.4.7193latest

Version History

VersionDownloads (Last 7 Days)Published
2.4.7193
2.4.61
2.4.50
2.4.40
2.4.30
2.4.20
2.4.10
2.4.00
2.3.13
2.3.0822
2.2.10
2.2.00
2.1.00
2.0.30
2.0.20
2.0.10
2.0.00
1.0.00

Package Sidebar

Install

npm i isolate-react

Weekly Downloads

1,019

Version

2.4.7

License

MIT

Unpacked Size

87.7 kB

Total Files

130

Last publish

Collaborators

  • davidmfoley