File size: 746 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { Browser } from 'playwright';
import type { TracksEvent } from './types/editor-tracks.types';

// Expose global browser initialized in jest-playwright-config/test-environment.ts
declare global {
	// Node 16 types removed the NodeJS.Global interface in favor of just using globalThis.
	// See https://github.com/DefinitelyTyped/DefinitelyTyped/pull/53669
	// This is the new syntax to modify globalThis. Note, 'let' and 'const' do not work!
	// See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#type-checking-for-globalthis
	// eslint-disable-next-line no-var
	var browser: Browser;
	// eslint-disable-next-line no-var
	var testFileName: string;

	interface Window {
		_e2eEventsStack: TracksEvent[];
	}
}