MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / deepCopy

Function deepCopy

src/__tests__/lib/cli-config.test.ts:504–504  ·  view source on GitHub ↗
(input: T)

Source from the content-addressed store, hash-verified

502
503describe('resetManagedConfigKey', () => {
504 const deepCopy = <T> (input: T): T => JSON.parse(JSON.stringify(input))
505 const makeConfig = (profiles: ProfilesByName, managedProfiles: ProfilesByName): CLIConfig => deepCopy({
506 ...descriptionTemplate,
507 profileName: 'defaultProfile',

Callers 1

makeConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected