Fix Console patching test by resetting modules

This commit is contained in:
Brian Vaughn
2019-08-26 13:53:29 -07:00
parent 177f357d9d
commit e3cc42be97

View File

@@ -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;