Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
196 changes: 36 additions & 160 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"jest": "27.0.4",
"jest-circus": "27.0.4",
"jest-environment-node": "27.0.3",
"jest-runner": "27.0.1",
"jest-runner": "27.0.4",
"lint-staged": "11.0.0",
"playwright": ">=1.2.0",
"playwright-chromium": ">=1.2.0",
Expand Down
8 changes: 3 additions & 5 deletions types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
devices,
} from 'playwright-core'
import { Config as JestConfig } from '@jest/types'
import { Context } from 'jest-runner/build/types'
import { Test } from 'jest-runner'
import { JestProcessManagerOptions } from 'jest-process-manager'

Expand Down Expand Up @@ -217,18 +216,17 @@ export interface JestPlaywrightConfig {
collectCoverage?: boolean
}

export interface JestPlaywrightProjectConfig extends JestConfig.ProjectConfig {
export type JestPlaywrightProjectConfig = Test['context']['config'] & {
browserName: BrowserType
wsEndpoint: WsEndpointType
device: DeviceType
extensionsToTreatAsEsm: string[]
}

interface JestPlaywrightContext extends Context {
export type JestPlaywrightContext = Omit<Test['context'], 'config'> & {
config: JestPlaywrightProjectConfig
}

export interface JestPlaywrightTest extends Test {
export type JestPlaywrightTest = Omit<Test, 'context'> & {
context: JestPlaywrightContext
}

Expand Down