This is my prototype:
Object.defineProperty(Set.prototype, 'isSubsetOf', {
value: function(this: Set<string>, otherSet: Set<string>): boolean { ... }
})
I want something that will give the name of Set.isSubsetOf, which is: "isSubsetOf"
The following is my attempt to retrieve the name of Set.isSubsetOf:
console.log(Set.prototype.isSubsetOf.name); // output: "value"
Why do I want it?
So that I can generate more descriptive test suite names:
describe(`unit-test: Set.prototype.${Set.prototype.isSubsetOf.name} method`, () => { ... });