Does this work with TypeScript? #89
Replies: 3 comments
-
The reporter generally doesn't work well with typescript (#51), but you should see the HTML file. You can create a repo with the problem so I could have a look |
Beta Was this translation helpful? Give feedback.
-
My error using cypress with TS is in the
and I get the following error when running my tests
|
Beta Was this translation helpful? Give feedback.
-
I had a similar problem. To setup the reporter with typescript you have to using the @LironEr maybe this should be updated in the docs/readme as well. const { defineConfig } = require('cypress');
import reportingPlugin from 'cypress-mochawesome-reporter/plugin'
module.exports = defineConfig({
reporter: 'cypress-mochawesome-reporter',
e2e: {
setupNodeEvents(on, config) {
reportingPlugin(on)
return config
},
},
}); |
Beta Was this translation helpful? Give feedback.
-
I have this reporter working with Cypress 10 in JS but I'm trying to switch to TS and the reporter is generating the json files but not the HTML, does anybody know if this works with TypeScipt? Is there an example repo I can take a look at?
Beta Was this translation helpful? Give feedback.
All reactions