detox
Version:
E2E tests and automation for mobile
13 lines (11 loc) • 352 B
JavaScript
function getFullTestName(test, separator = ' ') {
let testName = '';
for (let parent = test.parent;
parent.parent; // Since there's always an unwanted root made up by jest
parent = parent.parent) {
testName = parent.name + separator + testName;
}
testName += test.name;
return testName;
}
module.exports = getFullTestName;