2.1.4 • Published 4 years ago

@mcrowder65/mooks v2.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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)

2.1.4

4 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.7.6

5 years ago

1.7.5

5 years ago