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

Function write

__tests__/expo-modules.test.ts:219–222  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

217
218 it('expo-camera: `CameraManager.fn()` on `export default requireNativeModule<T>("ExpoCamera")` reaches the module’s functions', async () => {
219 const write = (rel: string, content: string) => {
220 fs.mkdirSync(path.dirname(path.join(dir, rel)), { recursive: true });
221 fs.writeFileSync(path.join(dir, rel), content);
222 };
223 write('package.json', '{"dependencies":{"expo-modules-core":"^1.0.0","expo":"*"}}');
224 write('ios/CameraViewModule.swift', `import ExpoModulesCore
225public final class CameraViewModule: Module {

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected