Skip to content

mcrowder65/mooks

Repository files navigation

Mooks

NPM version Build Status Total Status PRs Welcome Coverage Status

Usage

yarn add @mcrowder65/mooks
# or
npm install @mcrowder65/mooks

Documentation

Component documentation is available at https://mooks.dev

Usage in tests

Under the use-local-storage-set-state module is obviously using localStorage. When using this with jest, you will run into errors since jest does not have localStorage. Which is why this package requires jest-localstorage-mock as a peerDependency.

In order to get your tests to work, run yarn add -D jest-localstorage-mock, and then in your jest configuration, add:

"setupFiles": [
  "jest-localstorage-mock"
]

How to publish to npm

While on the master branch, run yarn version --(major|minor|patch)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages