Skip to content
Open
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
7 changes: 5 additions & 2 deletions src/PlaywrightEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
ConnectOverCDPOptions,
Page,
} from 'playwright-core'
import { Event } from 'jest-circus'
import { Event, State } from 'jest-circus'
import type { JestEnvironmentConfig } from '@jest/environment'
import type {
BrowserType,
Expand Down Expand Up @@ -357,7 +357,10 @@ export const getPlaywrightEnv = (basicEnv = 'node'): unknown => {
}
}

async handleTestEvent(event: Event) {
async handleTestEvent(event: Event, state: State) {
if (super.handleTestEvent) {
await super.handleTestEvent(event, state)
}
const { browserName } = this._config
const { collectCoverage, haveSkippedTests } = this._jestPlaywrightConfig
const browserType = getBrowserType(browserName)
Expand Down