mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +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