element-call/test/mocks/olmMock.ts
Robin Townsend d4caa1585b Ensure that Olm is only loaded once
React 18's strict mode intentionally mounts all components twice, which was causing Olm to get double-loaded. Also, it doesn't need to be loaded if the app is running as a widget.
2022-10-31 13:43:03 -04:00

1 line
54 B
TypeScript

module.exports = { loadOlm: jest.fn(async () => {}) }