webdriverio-community / wdio-mochawesome-reporter

A WebdriverIO plugin. Report in the Mochawesome format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to AddContext to Mochawesome Report

biz786 opened this issue · comments

Hi im trying to addContext to the mochawesome reporter in a typescript+nodejs project.I can generate json and html file.

But i am unable to resolve the import....get ERROR:
Cannot find module 'mochawesome/addContext'

Environment

Typescript,nodejs,mocha,webdriverio

  • WebdriverIO version:
  • Node.js version: 6.0.0
  • wdio testrunner - running synchronous tests:
  • Additional wdio packages used (if applicable):
    services:['chromedriver']
    reporters:['spec','mochawesome']
    reporterOptions:{
    outputDir: './'
    }

@fijijavis any idea/help would be appreciated

@biz786 looks like you don’t have the mochawesome package in your package.json. If you npm install it you should be good. I have an issue to add mochawesome-report-generator as a peer dependency. Guess I probably need to add this one to it too

Sent with GitHawk

@fijijavis yupp that was it ! Thanks a lot!