2.1.4 • Published 6 years ago
@mcrowder65/mooks v2.1.4
Mooks
Usage
yarn add @mcrowder65/mooks
# or
npm install @mcrowder65/mooksDocumentation
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)