Skip to content

Latest commit

 

History

History
28 lines (13 loc) · 573 Bytes

restore-spies.md

File metadata and controls

28 lines (13 loc) · 573 Bytes

Description (restore-spies)

The restore-spies rule enforces the developer to use restoreMock() function that spied objects in unit testing.

Rule Details

Examples of incorrect code for this rule:

// fill me in

Examples of correct code for this rule:

// fill me in

When Not To Use It

You don't need to use that rule if you are the good one to restore your mocks or spies in your daily base or if you have been configured jest to restoreMocks to true