We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2933af0 commit 3ba2951Copy full SHA for 3ba2951
src/test/datascience/reactHelpers.ts
@@ -270,6 +270,9 @@ export function setUpDomEnvironment() {
270
userAgent: 'node.js',
271
platform: 'node'
272
};
273
+ (global as any)['Event'] = window.Event;
274
+ (global as any)['KeyboardEvent'] = window.KeyboardEvent;
275
+ (global as any)['MouseEvent'] = window.MouseEvent;
276
(global as any)['DocumentFragment'] = window.DocumentFragment;
277
// tslint:disable-next-line:no-string-literal no-any
278
(global as any)['getComputedStyle'] = window.getComputedStyle;
0 commit comments