MCPcopy Index your code
hub / github.com/coder/coder / renderMetadataHook

Function renderMetadataHook

site/src/hooks/useEmbeddedMetadata.test.ts:172–180  ·  view source on GitHub ↗
(metadataKey: string)

Source from the content-addressed store, hash-verified

170}
171
172function renderMetadataHook(metadataKey: string) {
173 const manager = new MetadataManager(metadataKey);
174 const hook = makeUseEmbeddedMetadata(manager);
175
176 return {
177 ...renderHook(hook),
178 manager,
179 };
180}
181
182// Just to be on the safe side, probably want to make sure that each test case
183// is set up with a unique key

Callers 1

Calls 1

makeUseEmbeddedMetadataFunction · 0.90

Tested by

no test coverage detected