Skip to content

Commit

Permalink
feat: return spied module when calling spy (#484)
Browse files Browse the repository at this point in the history
* chore: add babel core type definition

* feat: return spied module when calling spy

* chore: update docs and audit locks
  • Loading branch information
iamogbz authored Aug 25, 2022
1 parent 99989d8 commit f4b4316
Show file tree
Hide file tree
Showing 5 changed files with 22,099 additions and 14,065 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode
artifacts
dist
lib
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module.exports = {
import * as mock from "jest-mock-module";
mock.extend(jest);

// Only to be used on valid modules
jest.spy("src/example");

const example = require("src/example");
Expand Down
Loading

0 comments on commit f4b4316

Please sign in to comment.