Skip to content

Commit 3ba2951

Browse files
committed
Add more missing dom4 stuff
1 parent 2933af0 commit 3ba2951

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/datascience/reactHelpers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ export function setUpDomEnvironment() {
270270
userAgent: 'node.js',
271271
platform: 'node'
272272
};
273+
(global as any)['Event'] = window.Event;
274+
(global as any)['KeyboardEvent'] = window.KeyboardEvent;
275+
(global as any)['MouseEvent'] = window.MouseEvent;
273276
(global as any)['DocumentFragment'] = window.DocumentFragment;
274277
// tslint:disable-next-line:no-string-literal no-any
275278
(global as any)['getComputedStyle'] = window.getComputedStyle;

0 commit comments

Comments
 (0)