mirror of
https://github.com/hanzoai/Detox.git
synced 2026-10-30 14:46:00 +00:00
13 lines
352 B
JavaScript
13 lines
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;
|