diff --git a/types/expect-puppeteer/expect-puppeteer-tests.ts b/types/expect-puppeteer/expect-puppeteer-tests.ts
index e39c1691b5a9b6..2d884312de3c9d 100644
--- a/types/expect-puppeteer/expect-puppeteer-tests.ts
+++ b/types/expect-puppeteer/expect-puppeteer-tests.ts
@@ -1,5 +1,6 @@
import { ElementHandle, Page } from "puppeteer";
import { getDefaultOptions, setDefaultOptions } from 'expect-puppeteer';
+import { expect } from 'expect';
const testGlobal = async (instance: ElementHandle | Page) => {
await expect(instance).toClick({ type: 'css', value: 'selector' });
diff --git a/types/expect-puppeteer/index.d.ts b/types/expect-puppeteer/index.d.ts
index 485007e72b4e7d..b67aa601fac7ae 100644
--- a/types/expect-puppeteer/index.d.ts
+++ b/types/expect-puppeteer/index.d.ts
@@ -5,8 +5,6 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.3
-///
-
import { ElementHandle, Page, Dialog } from "puppeteer";
/**
@@ -90,20 +88,18 @@ interface ExpectPuppeteer {
toUploadFile(selector: string | MatchSelector, filePath: string, options?: ExpectTimingActions): Promise;
}
-declare global {
- namespace jest {
- interface Matchers {
- // These must all match the ExpectPuppeteer interface above.
- // We can't extend from it directly because some method names conflict in type-incompatible ways.
- toClick(selector: string | MatchSelector, options?: ExpectToClickOptions): Promise;
- toDisplayDialog(block: () => Promise): Promise