UNPKG

@estruyf/github-actions-reporter

Version:
11 lines (10 loc) 232 B
export const getTestTitle = (test) => { if (!test) { return ""; } const parent = test.parent; if (!parent || !parent.title) { return test.title; } return `${parent.title} > ${test.title}`; };