mooks
v1.7.3
Published
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Total Status][total-image]][total-url] [![PRs Welcome][pr-image]][pr-url] [![Coverage Status][coverage-image]][coverage-url]
Downloads
10
Readme
Mooks
Usage
yarn add -D mooks
# or
npm install -D 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)