test-hooks

[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![Travis](https://img.shields.io/travis/RaoHai/test-hooks.svg)](https://travis-ci.org/RaoHai/test-hooks) [![Coverage Status](htt

Usage no npm install needed!

<script type="module">
  import testHooks from 'https://cdn.skypack.dev/test-hooks';
</script>

README

TEST-HOOKS

styled with prettier Travis Coverage Status dependencies Status

Usage

  import testHooks from 'test-hooks'
  const { act, hooks } = testHooks(() => useState(true));
  expect(hooks()[0]).toEqual(true);
  act(hook => {
    hook[1](false);
  });
  expect(hooks()[0]).toEqual(false);