Spec reporter throws JS error when using t.report and having a reporter onBeforeWrite hook set #8147
Labels
HAS WORKAROUND
STATE: Issue accepted
An issue has been reproduced.
TYPE: bug
The described behavior is considered as wrong (bug).
What is your Scenario?
onBeforeWrite
hook in.testcaferc.js
which modifies spec reporter outputt.report({})
What is the Current behavior?
Get JS error:
What is the Expected behavior?
Do not get a JS error.
What is the public URL of the test page? (attach your complete example)
Find a POC here: https://github.com/di5ko/testcafe-reporter-issue-poc
What is your TestCafe test code?
See Github repo shared above.
Your complete configuration file
See Github repo shared above.
Your complete test report
Screenshots
No response
Steps to Reproduce
Run
npm run test
in repo shared above.TestCafe version
3.5.0
Node.js version
v20.10.0
Command-line arguments
npm run test
Browser name(s) and version(s)
Chrome, Chromium, FF
Platform(s) and version(s)
MacOS Monterey 12
Other
No response
The text was updated successfully, but these errors were encountered: