MCPcopy Index your code
hub / github.com/nodejs/node / getTestNameWithAncestors

Method getTestNameWithAncestors

lib/internal/test_runner/test.js:895–899  ·  view source on GitHub ↗

* Returns a name of the test prefixed by name of all its ancestors in ascending order, separated by a space * Ex."grandparent parent test" * * It's needed to match a single test with non-unique name by pattern * @returns {string}

()

Source from the content-addressed store, hash-verified

893 * @returns {string}
894 */
895 getTestNameWithAncestors() {
896 if (!this.parent) return '';
897
898 return `${this.parent.getTestNameWithAncestors()} ${this.name}`;
899 }
900
901 /**
902 * @returns {boolean}

Callers 1

testMatchesPatternFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected