The source code of the Jest test suite.
The name of the function being tested.
The modified source code.
const code = `describe('myFunction', () => {...})`;
const exportName = 'myFunction';
const newCode = tsJestConvertExportNameString(code, exportName);
//=> `describe(myFunction.name, () => {...})`
Generated using TypeDoc
Converts the name of an exported function or variable in a Jest test suite to use the
.nameproperty of the exported item. This is useful for keeping test suite names in sync with the names of the items they are testing.