DevExpress / generator-testcafe-reporter

Scaffold out a TestCafe reporter.
https://testcafe.io
MIT License
7 stars 12 forks source link

Update Generator Gulpfile and Babel Dependencies #14

Closed dapperdandev closed 5 years ago

dapperdandev commented 5 years ago

I'm getting the following error when performing npm test given the code in this PR:

C:\Users\user\Development\testcafe-reporter-example\node_modules\testcafe\lib\errors\test-run\index.js:78
    constructor(type, { apiFnChain, apiFnIndex }) {
                        ^

TypeError: Cannot destructure property `apiFnChain` of 'undefined' or 'null'.

Here's a repo to clone and reproduce: https://github.com/djbreen7/testcafe-reporter-example

Please advise.

AndreyBelym commented 5 years ago

Thank you for your contribution again :smile:

There is a problem in the test data: djbreen7/testcafe-reporter-example/blob/master/test/utils/reporter-test-calls.js:148

In recent TestCafe versions, the ActionElementNotFoundError constructor requires an argument: DevExpress/testcafe/blob/master/src/errors/test-run/index.js:311

You can copy dummy values for the constructor from TestCafe's server tests: DevExpress/testcafe/blob/master/test/server/test-run-error-formatting-test.js:185

dapperdandev commented 5 years ago

Hi there. Status update? @AndreyBelym

AndreyBelym commented 5 years ago

I apologize for the delay and will publish a new version today.

AndreyBelym commented 5 years ago

Thank you for your contribution!