mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix Console patching test by resetting modules
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user