eugene-manuilov / jest-runner-groups

A custom runner that allows to tag test files and run groups of tests with Jest.
MIT License
128 stars 14 forks source link

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

Open Dilshani opened 3 years ago

Dilshani commented 3 years ago

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

Giving error as follows:

dashboard-ui@1.0.0 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"
  }