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

Function buildConfig

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

Source from the content-addressed store, hash-verified

294 })
295
296 const buildConfig = async (): Promise<CLIConfig> => {
297 yamlLoadMock.mockReturnValueOnce({
298 chosenProfile: {
299 validString: 'valid string value',
300 validNumber: 13,
301 validBoolean: true,
302 validStringArray: ['value1', 'value2'],
303 validNumberArray: [1, 2, 3, 5, 8],
304 },
305 })
306 yamlLoadMock.mockReturnValueOnce({})
307 return loadConfig(descriptionTemplate, loggerMock)
308 }
309
310 describe('stringConfigValue', () => {
311 it('returns undefined when not set', async () => {

Callers 1

cli-config.test.tsFile · 0.85

Calls 1

loadConfigFunction · 0.85

Tested by

no test coverage detected