this will help I find a solution. however, it is not stable: sometimes it throws an error: '[object DOMException]:\n No stack trace available'. Maybe someone knows why? The code ( after creat mock and logger object as in testCafe doc):
may help you . The Percy agent client is running in the TestCafe node process instead of running in the browser. This is why you get an error. You should, in a first step, inject the Percy client in the browser by following this documentation: Injecting External Libraries into a Page from a Test
How do I debug a Testcafe browser running in a testcafe/testcafe docker container?
By : user2615250
Date : March 29 2020, 07:55 AM
help you fix your problem You can use the NODE_OPTIONS environment variable to enable remote debugging:
How to execute command lines TestCafe in a project with Cucumber JS?
By : Pankaj Arora
Date : October 07 2020, 08:00 AM
will help you Currently, it's not possible to use TestCafe CLI to run CucumberJS tests. Current TestCafe-Cucumber integrations use TestCafe API to translate Cucumber feature files to TestCafe actions and heavily integrate into CucumberJS. Issue #2835 will enable running CucumberJS tests from TestCafe CLI out of the box.