Skip to content

Commit

Permalink
Fixes to check browsers for parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarkelov committed Mar 18, 2020
1 parent c0109ab commit d49cc7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bin/testProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const runner = async (sequence: string, params: string[]): Promise<void> => {
const rootDir = `${process.cwd()}/${process.env.npm_package_jest_rootDir ||
''}/`
const config = await readConfig(rootDir)
const { devices = [] } = config
const { devices = [], browser } = config
let browsers = config.browsers
if (!browsers) {
browsers = browser ? [browser] : []
Expand Down
5 changes: 2 additions & 3 deletions types/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Page, BrowserContext } from 'playwright-core'
import { BrowserType } from '../src/constants'
import { Page, Browser, BrowserContext } from 'playwright-core'

interface JestPlaywright {
/**
Expand All @@ -18,7 +17,7 @@ interface JestPlaywright {

declare global {
const page: Page
const browser: BrowserType
const browser: Browser
const context: BrowserContext
const jestPlaywright: JestPlaywright
}

0 comments on commit d49cc7b

Please sign in to comment.