2

我在 webdriver.io 框架中为 mochawesome 报告添加了以下开发依赖项。

"wdio-dot-reporter": "0.0.10",
"wdio-mochawesome-reporter": "^4.0.0"

我的 wdio.conf 文件如下所示

 reporters: [
    'dot',
    [
      'mochawesome',
      {
        outputDir: './Results',
      },
    ],
  ],

当我尝试运行测试时,出现以下错误:

[0-0] 2021-12-24T09:20:57.498Z ERROR @wdio/local-runner: Failed launching test session: TypeError: ReporterClass is not a constructor
    at BaseReporter.initReporter (/Users/id856795/myproximus-rn/node_modules/@wdio/runner/build/reporter.js:101:20)
    at Array.map (<anonymous>)
    at new BaseReporter (/Users/id856795/myproximus-rn/node_modules/@wdio/runner/build/reporter.js:21:50)
    at Runner.run (/Users/id856795/myproximus-rn/node_modules/@wdio/runner/build/index.js:45:26)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
/Users/id856795/myproximus-rn/node_modules/@wdio/cli/build/interface.js:127
            throw new Error('Could not find job');
            ^

Error: Could not find job
4

0 回答 0