MCPcopy Index your code
hub / github.com/devcontainers/cli / testSubstitute

Function testSubstitute

src/test/testUtils.ts:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138export const testSubstitute: SubstituteConfig = value => {
139 if ('id' in value) {
140 return {
141 ...value,
142 id: (value as any).id + '-substituted'
143 };
144 }
145 return value;
146};
147
148export const output = makeLog(createPlainLog(text => process.stdout.write(text), () => LogLevel.Trace));
149

Callers 1

configWithRawFunction · 0.90

Calls

no outgoing calls

Tested by 1

configWithRawFunction · 0.72