MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / webRootOf

Function webRootOf

__tests__/php-web-root-includes.test.ts:276–281  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

274
275describe('codegraph.json webRoot', () => {
276 function webRootOf(value: unknown): string | null {
277 root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-php-web-root-config-'));
278 write(root, { 'codegraph.json': JSON.stringify({ exclude: ['vendor/'], webRoot: value }) });
279 clearProjectConfigCache();
280 return loadWebRoot(root);
281 }
282
283 it.each([
284 ['public', 'public'],

Callers 1

Calls 4

clearProjectConfigCacheFunction · 0.90
loadWebRootFunction · 0.90
writeFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected