Files
config-plugins/fixtures/getFixtures.ts
T
2025-05-27 15:42:59 -07:00

16 lines
329 B
TypeScript

import path from "path";
import fs from "fs";
export function getFixture(
name:
| "AppDelegate.mm"
| "AppDelegate.swift"
| "app-build.gradle"
| "build.gradle"
| "Podfile"
| "app-Bridging-Header.h"
): string {
const filepath = path.join(__dirname, name);
return fs.readFileSync(filepath, "utf8");
}