@mcrowder65/mooks

2.1.4 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i @mcrowder65/mooks

Weekly Downloads

0

Version

2.1.4

License

ISC

Unpacked Size

46.5 kB

Total Files

25

Last publish

Collaborators

  • mcrowder65