Closed animeshkumar29 closed 11 months ago
It seems the errors come from feature Collect Data from the Comments Please try enable typescript for the parser, see following comments
// playwright.config.js
module.exports = {
reporter: [
['monocart-reporter', {
name: "My Test Report",
outputFile: './test-results/report.html',
// additional custom visitor for columns
visitor: (data, metadata, collect) => {
// auto collect data from the comments
const parserOptions = {
// Indicate the mode the code should be parsed in.
// Can be one of "script", "module", or "unambiguous". Defaults to "script".
// sourceType: 'module',
// enable typescript syntax.
plugins: ['typescript']
// more https://babeljs.io/docs/babel-parser
};
const comments = collect.comments(parserOptions);
if (comments) {
// Append all collected comments data to report data
Object.assign(data, comments);
}
}
}]
]
};
To the point Answer and its Working as Expected , you are Awosome , and special thanks on helping on Weekend
i Did this changes
Hi cenfun
First of all thanks for Developing this wonderful report , i am using since very long but Now i migrated my framework in Type script Playwright , earlier it was JS Playwright , Though not much changes in framework but not sure why i am getting error in my Console , here is details , Any possible help will be great .
But Still i am able to get My report properly but in console its showing in RED this irritates me lot .