mooks

1.7.3 • Public • Published

Mooks

NPM version Build Status Total Status PRs Welcome Coverage Status

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)

Readme

Keywords

none

Package Sidebar

Install

npm i mooks

Weekly Downloads

0

Version

1.7.3

License

ISC

Unpacked Size

43.7 kB

Total Files

24

Last publish

Collaborators

  • mcrowder65