mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +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