Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nigeon committed Dec 1, 2023
1 parent e7c0f8a commit 0c03fd2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions setup-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ class Worker {

// required due to SDK dependency
Object.defineProperty(window, 'Worker', { value: Worker })
Object.defineProperty(window, 'MockedWindowURL', { value: {
createObjectURL: () => 'blob:mocked',
revokeObjectURL: () => {}
} })
Object.defineProperty(window, 'MockedWindowURL', {
value: {
createObjectURL: () => 'blob:mocked',
revokeObjectURL: () => {},
},
})

// required by any react component (almost all of them)
global.React = React
global.React = React

0 comments on commit 0c03fd2

Please sign in to comment.