I have a failing unit test and i am writing a custom jasmine reporter that would requires me to get the name of the file from the stack trace provided by it.
Verify the most recent consumer review is showing all information. (0.683 sec) - Expected true to be false, 'test title'. at Object.<anonymous> (/Users/xyz/Documents/tests/somefolder/xyz.test.js:25:72) at /Users/xyz/Documents/node_modules/jasminewd2/index.js:96:23 at new Promise (/Users/xyz/Documentsc/node_modules/selenium-webdriver/lib/promise.js:1043:7.....
What is the best way just to get the name of the file xyz.test.js
from above?
Aucun commentaire:
Enregistrer un commentaire