diff options
Diffstat (limited to 'packages/browser/src/setupTests.ts')
-rw-r--r-- | packages/browser/src/setupTests.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/browser/src/setupTests.ts b/packages/browser/src/setupTests.ts index 019ba42..75833a8 100644 --- a/packages/browser/src/setupTests.ts +++ b/packages/browser/src/setupTests.ts @@ -3,6 +3,9 @@ // jest.spyOn(console, 'debug').mockImplementation(); // jest.spyOn(console, 'error').mockImplementation(); +// @ts-expect-error +if (global.window) { + /** * JSDom doesn't seem to support `credentials`, so let's define them here so we can mock their * implementations in specific tests. @@ -14,3 +17,4 @@ window.navigator.credentials = { // assertion get: jest.fn(), }; +}
\ No newline at end of file |