MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / expectWellFormed

Function expectWellFormed

test/config-loader-robustness.test.ts:31–35  ·  view source on GitHub ↗
(cfg: unknown)

Source from the content-addressed store, hash-verified

29 }
30
31 function expectWellFormed(cfg: unknown) {
32 expect(cfg).not.toBeNull();
33 expect(typeof cfg).toBe('object');
34 expect(Array.isArray(cfg)).toBe(false);
35 }
36
37 it('a bare-scalar-string config does NOT replace the config object', async () => {
38 const cfg = await loadConfig(await projectWith('just a bare string'));

Calls

no outgoing calls

Tested by

no test coverage detected