Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

HugoDF/jest-spy-mock-stub-reference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jest .fn() and spyOn() spy/stub/mock assertion reference

Requirements

  • Node 10
  • Yarn 1.x or npm

Setup

  1. Clone the repository
  2. Run yarn or npm install installs all required dependencies.

npm scripts

Equivalent npm run <script> should also work

  • yarn test runs the tests with Jest
  • yarn lint will lint all of the files with xo
  • yarn format will run lint with --fix option on all the examples files (and tests).

LICENSE

Code is licensed under the MIT License.

Releases

No releases published

Packages

No packages published