Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions packages/browser/test/utils/lazyLoadIntegration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ describe('lazyLoadIntegration', () => {
httpClientIntegration: undefined,
};

// We do not await here, as this this does not seem to work with JSDOM :(
// We have browser integration tests to check that this actually works
void lazyLoadIntegration('httpClientIntegration');
try {
await lazyLoadIntegration('httpClientIntegration');
} catch {
// skip
}

expect(global.document.querySelectorAll('script')).toHaveLength(1);
expect(global.document.querySelector('script')?.src).toEqual(
Expand Down