Skip to content

Commit

Permalink
Mock backdrop container
Browse files Browse the repository at this point in the history
  • Loading branch information
mmso authored and MargeBot committed Nov 22, 2021
1 parent 63de2c9 commit 67f5aa1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions applications/mail/jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ global.MutationObserver = class {
disconnect() {} // eslint-disable-line
observe() {} // eslint-disable-line
};

// Mock backdrop container because it's always rendered, and it's rendered in a portal which causes issues with the hook renderer
jest.mock('@proton/components/components/modalTwo/BackdropContainer', () => ({
__esModule: true,
default: () => null,
}));

0 comments on commit 67f5aa1

Please sign in to comment.