Skip to content

Commit

Permalink
fix(suite): env utils mock in Preloader unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Jan 28, 2025
1 parent e7b10fe commit f3caf8f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jest.mock('@trezor/suite-desktop-api', () => ({
},
}));

jest.mock('@trezor/env-utils', () => ({
...jest.requireActual('@trezor/env-utils'),
isLinux: () => true,
}));

// jest.mock('@firmware-components/ReconnectDevicePrompt', () => ({
// __esModule: true, // export as module
// default: ({ children }: any) => <div data-testid="box">{children}</div>,
Expand Down

0 comments on commit f3caf8f

Please sign in to comment.