I'd like to console.log something during a test if the -d flag was specified. Is it possible?
Hello,TestCafe does not provide an API to check if the debug mode is enabled. As a possible solution, check the "-d" flag within process.argv. A similar scenario is discussed in the following thread:
Enviroment variables, process.env for testcafe
Thanks, @MarinaRukavitsyna. This might not work for me, since I call TestCafe using its API from a node.js script (incidentally, I also use -d in my script, so maybe...?). I'll check it when I have some Spare Time™.