Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 99e4c43

Browse files
authored
Declare module (#685)
1 parent 4b9cffc commit 99e4c43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

types/global.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ declare const LAUNCH = 'LAUNCH'
2727
declare const PERSISTENT = 'PERSISTENT'
2828
declare const SERVER = 'SERVER'
2929

30+
declare module 'jest-playwright-preset' {
31+
const globalSetup: (config: JestConfig.GlobalConfig) => void
32+
const globalTeardown: (config: JestConfig.GlobalConfig) => void
33+
const getPlaywrightEnv: (env?: string) => void
34+
}
35+
3036
export type BrowserType = typeof CHROMIUM | typeof FIREFOX | typeof WEBKIT
3137

3238
export type SkipOption = {

0 commit comments

Comments
 (0)