Skip to content

Commit

Permalink
[jest-environment-puppeteer] Fix imported GlobalType.Global not match…
Browse files Browse the repository at this point in the history
…ing with Global from jest-environment-node (DefinitelyTyped#59975)

Co-authored-by: Cas Cornelissen <[email protected]>
  • Loading branch information
cascornelissen and Cas Cornelissen authored Apr 26, 2022
1 parent 57385c6 commit 960c1d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions types/jest-environment-puppeteer/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// TypeScript Version: 3.8

import NodeEnvironment = require('jest-environment-node');
import { Global as GlobalType } from '@jest/types';
import { Browser, Page, BrowserContext } from 'puppeteer';
import { Context } from 'vm';

Expand Down Expand Up @@ -47,7 +46,7 @@ interface JestPuppeteer {
debug(): Promise<void>;
}

interface Global extends GlobalType.Global {
interface Global extends NonNullable<NodeEnvironment['global']> {
browser: Browser;
context: Context;
page: Page;
Expand Down

0 comments on commit 960c1d2

Please sign in to comment.