Skip to content

Commit

Permalink
Fix tests that use useActiveWorkspace
Browse files Browse the repository at this point in the history
  • Loading branch information
WojtekBoman committed Dec 11, 2024
1 parent b15bcca commit e69b8f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/perf-test/SidebarLinks.perf-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import wrapInAct from '../utils/wrapInActHelper';
import wrapOnyxWithWaitForBatchedUpdates from '../utils/wrapOnyxWithWaitForBatchedUpdates';

jest.mock('@libs/Permissions');
jest.mock('@src/hooks/useActiveWorkspace', () => jest.fn(() => ({activeWorkspaceID: undefined})));
jest.mock('@hooks/useActiveWorkspace', () => jest.fn(() => ({activeWorkspaceID: undefined})));
jest.mock('../../src/libs/Navigation/Navigation', () => ({
navigate: jest.fn(),
isActiveRoute: jest.fn(),
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/LHNItemsPresence.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import wrapOnyxWithWaitForBatchedUpdates from '../utils/wrapOnyxWithWaitForBatch
// Be sure to include the mocked permissions library, as some components that are rendered
// during the test depend on its methods.
jest.mock('@libs/Permissions');
jest.mock('@src/hooks/useActiveWorkspaceFromNavigationState');
jest.mock('@hooks/useActiveWorkspace', () => jest.fn(() => ({activeWorkspaceID: undefined})));

type LazyLoadLHNTestUtils = {
fakePersonalDetails: PersonalDetailsList;
Expand Down

0 comments on commit e69b8f0

Please sign in to comment.