Cleanup throws error if TestCafe if Node.js instance was started with "--watch" #8234
Labels
STATE: Stale
An outdated issue that will be automatically closed by the Stale bot.
TYPE: bug
The described behavior is considered as wrong (bug).
What is your Scenario?
I wrote some custom functions for TestCafe and decided to cover these with tests. The test setup consists of a Node.js built-in test runner that spawns TestCafe and asserts against TestCafe JSON reports. As goes with tests, you often want to run them in a watch mode.
What is the Current behavior?
What spawned from
execSync
,spawn
or manually created runner instance (thecreateTestcafe
API) and with the "--watch" flag, TestCafe runs the tests and throws.What is the Expected behavior?
TestCafe runs without throwing errors.
What is your TestCafe test code?
reproducer.zip
Steps to Reproduce
Create a TestCafe runner via the JS API and run an empty TestCafe test with it. When starting the .js, use "--watch" node argument.
TestCafe version
3.6.2
Node.js version
20.15.0
Platform(s) and version(s)
WIndows 11
The text was updated successfully, but these errors were encountered: