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

Function configWithRaw

src/test/imageMetadata.test.ts:19–25  ·  view source on GitHub ↗
(raw: T)

Source from the content-addressed store, hash-verified

17const pkg = require('../../package.json');
18
19function configWithRaw<T extends DevContainerConfig | ImageMetadataEntry[]>(raw: T): SubstitutedConfig<T> {
20 return {
21 config: (Array.isArray(raw) ? raw.map(testSubstitute) : testSubstitute(raw)) as T,
22 raw,
23 substitute: testSubstitute,
24 };
25}
26
27describe('Image Metadata', function () {
28 this.timeout('180s');

Callers 1

Calls 1

testSubstituteFunction · 0.90

Tested by

no test coverage detected