MCPcopy Create free account
hub / github.com/ReactiveX/rxjs / migrateTestFiles

Function migrateTestFiles

packages/migrate/src/node.ts:166–172  ·  view source on GitHub ↗
(options: MigrateFilesOptions)

Source from the content-addressed store, hash-verified

164}
165
166export async function migrateTestFiles(options: MigrateFilesOptions): Promise<readonly MigratedFile[]> {
167 if (options.write && !options.outputRoot) {
168 throw new Error('outputRoot is required when write is enabled.');
169 }
170 const plan = await planMigrationFiles(options);
171 return options.write ? applyMigrationPlan(plan, { overwrite: options.overwrite }) : plan.files;
172}
173
174function safeOutputPath(outputRoot: string, outputName: string): string {
175 if (!outputName || outputName === '.' || isAbsolute(outputName)) {

Callers 2

usage.tsFile · 0.90
node.spec.tsFile · 0.85

Calls 2

planMigrationFilesFunction · 0.85
applyMigrationPlanFunction · 0.85

Tested by

no test coverage detected