Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

TypeError: Cannot read property 'logger' of undefined #25

Open
Dilshani opened this issue Jan 14, 2021 · 0 comments
Open

TypeError: Cannot read property 'logger' of undefined #25

Dilshani opened this issue Jan 14, 2021 · 0 comments

Comments

@Dilshani
Copy link

Dilshani commented Jan 14, 2021

Added runner-groups to my project which having Playwright + Jest.

Giving error as follows:

[email protected] test /Users/dilshani/Tech/projects/dashboard-ui
> jest --detectOpenHandles --group=ci

FAIL  src/specs/[Negative]login.ci.test.ts
 ● Test suite failed to run

   TypeError: Cannot read property 'logger' of undefined

     at BrowserType.connect (node_modules/playwright/lib/client/browserType.js:90:31)
     at getBrowserPerProcess (node_modules/jest-playwright-preset/lib/PlaywrightEnvironment.js:31:31)
     at PlaywrightEnvironment.setup (node_modules/jest-playwright-preset/lib/PlaywrightEnvironment.js:90:48)

Test Suites: 1 failed, 1 of 2 total
Tests:       0 total
Snapshots:   0 total
Time:        0.445 s, estimated 28 s
Ran all test suites.
npm ERR! Test failed.  See above for more details.

Dependencies:

"devDependencies": {
    "@types/jest": "^26.0.19",
    "jest": "^26.6.3",
    "jest-junit": "^12.0.0",
    "jest-playwright-preset": "^1.4.3",
    "jest-runner-groups": "^2.0.1",
    "playwright": "^1.7.1",
    "ts-jest": "^26.4.4",
    "typescript": "^4.1.3"
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant