MCPcopy Index your code
hub / github.com/teambit/bit / createFile

Function createFile

e2e/commands/export.e2e.1.ts:17–20  ·  view source on GitHub ↗
(dir, name)

Source from the content-addressed store, hash-verified

15 helper.command.setFeatures('legacy-workspace-config');
16 });
17 const createFile = (dir, name) => {
18 const componentFixture = `module.exports = function foo() { return 'got ${name}'; };`;
19 fs.outputFileSync(path.join(helper.scopes.localPath, dir, `${name}.js`), componentFixture);
20 };
21 after(() => {
22 helper.scopeHelper.destroy();
23 });

Callers 1

export.e2e.1.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected