Skip to content

Commit

Permalink
Fix Console patching test by resetting modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Aug 26, 2019
1 parent 177f357 commit e3cc42b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-devtools-shared/src/__tests__/console-test.js
Expand Up @@ -13,6 +13,8 @@ describe('console', () => {
let unpatchConsole;

beforeEach(() => {
jest.resetModules();

const Console = require('react-devtools-shared/src/backend/console');
patchConsole = Console.patch;
unpatchConsole = Console.unpatch;
Expand Down

0 comments on commit e3cc42b

Please sign in to comment.