Skip to content

Commit

Permalink
Changes the mock description
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Feb 14, 2022
1 parent ed0a475 commit 47d13f7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions superset-frontend/spec/helpers/shim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,9 @@ g.$ = jQuery(g.window);
configureTranslation();
setupSupersetClient();

// The useTabId hook depends on BroadcastChannel which is monked patched by broadcast-channel.
// Jest has a memory leak problem when dealing with monkey-patches for native modules.
// See https://chanind.github.io/javascript/2019/10/12/jest-tests-memory-leak.html and
// https://github.com/facebook/jest/issues/6814 for more information.
// The useTabId hook depends on BroadcastChannel. Jest has a memory leak problem when
// dealing with native modules. See https://chanind.github.io/javascript/2019/10/12/jest-tests-memory-leak.html
// and https://github.com/facebook/jest/issues/6814 for more information.
jest.mock('src/hooks/useTabId', () => ({
useTabId: () => 1,
}));

0 comments on commit 47d13f7

Please sign in to comment.