scripts/generateNewClientTests/getServiceImportWithNameOutput.ts (14 lines of code) (raw):

import { CLIENTS_TO_TEST } from "./config"; import { getClientNameWithLocalSuffix } from "./getClientNameWithLocalSuffix"; import { getClientNamesSortedByPackageName } from "./getClientNamesSortedByPackageName"; import { getV3ClientsNewExpressionCode } from "./getV3ClientsNewExpressionCode"; import { getV3PackageImportsCode } from "./getV3PackageImportsCode"; export const getServiceImportWithNameOutput = () => { let content = ""; content += getV3PackageImportsCode(getClientNamesSortedByPackageName(CLIENTS_TO_TEST), { useLocalSuffix: true, }); content += "\n"; content += getV3ClientsNewExpressionCode(CLIENTS_TO_TEST.map(getClientNameWithLocalSuffix)); return content; };