We have a distributed project where we're providing a few additional utility functions via a javascript file. When we use karate.fail() in js file or function, it's failing as the evaluation happens at js level when the js file is called from karate.call(). However, we do not see any background steps that were intended to be displayed in the report when karate.fail() is called from a javascript file.
How could we display background steps when karate.fail() is called from a javascript file?