Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const buildName: (snapshotNode: Node, parents: Array, position: number) => string = (
snapshotNode,
parents,
position
) => {
const fullName = parents.map(parent => parent.arguments[0].value).join(' ');
return utils.testNameToKey(fullName, position);
};