MCPcopy Create free account
hub / github.com/Snapchat/Valdi / writeComponent

Function writeComponent

npm_modules/cli/src/preview/viewModelParser.spec.ts:19–23  ·  view source on GitHub ↗
(filename: string, content: string)

Source from the content-addressed store, hash-verified

17 });
18
19 function writeComponent(filename: string, content: string): string {
20 const filePath = path.join(tmpDir, filename);
21 fs.writeFileSync(filePath, content, 'utf8');
22 return filePath;
23 }
24
25 describe('parseComponentFile', () => {
26 it('parses a simple Component with ViewModel', () => {

Callers 1

Calls 2

writeFileSyncMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected