cypress-mochawesome-reporter icon indicating copy to clipboard operation
cypress-mochawesome-reporter copied to clipboard

Typescript: Report shows transpiled javascript

Open SebastianDaehnrich opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

I use the plugin @cypress/webpack-preprocessor to convert typescript to javascript.
After I run my tests, a report is created for me that contains the transpiled Javascript.

cy.login(_support_testmodel__WEBPACK_IMPORTED_MODULE_0__["default"].visitUrl);
cy.wait('@legalDataRequest').then(function () {
    _support_testmodel__WEBPACK_IMPORTED_MODULE_0__["default"].editChairman();
    _support_testmodel__WEBPACK_IMPORTED_MODULE_0__["default"].submitForm();
    _support_testmodel__WEBPACK_IMPORTED_MODULE_0__["default"].validateEditedChairmanValue();
});

Dependencies:

{
    "cypress": "8.3.1",
    "cypress-mochawesome-reporter": "^2.3.0",
    "@cypress/webpack-preprocessor": "5.9.1"
}

Is there a way to display the actual typescript code?

cy.login(testmodel.visitUrl);
cy.wait('@legalDataRequest').then(function () {
    testmodel.editChairman();
    testmodel.submitForm();
    testmodel.validateEditedChairmanValue();
});`

SebastianDaehnrich avatar Oct 21 '21 10:10 SebastianDaehnrich