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

Function write

__tests__/tsconfig-extends-aliases.test.ts:30–33  ·  view source on GitHub ↗
(file: string, content: unknown)

Source from the content-addressed store, hash-verified

28import { loadProjectAliases, applyAliases, aliasAndBaseUrlCandidates } from '../src/resolution/path-aliases';
29
30function write(file: string, content: unknown): void {
31 fs.mkdirSync(path.dirname(file), { recursive: true });
32 fs.writeFileSync(file, typeof content === 'string' ? content : JSON.stringify(content, null, 2));
33}
34
35describe('tsconfig `extends` chains (#1534)', () => {
36 let root: string;

Calls

no outgoing calls

Tested by

no test coverage detected