MCPcopy Create free account
hub / github.com/angular/components / runFixers

Function runFixers

src/cdk/schematics/testing/test-case-setup.ts:101–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99 writeFile(testAppTsconfigPath, JSON.stringify(testAppTsconfig, null, 2));
100
101 const runFixers = async function () {
102 // Patch "executePostTasks" to do nothing. This is necessary since
103 // we cannot run the node install task in unit tests. Rather we just
104 // assert that certain async post tasks are scheduled.
105 // TODO(devversion): RxJS version conflicts between angular-devkit and our dev deps.
106 runner.engine.executePostTasks = () => EMPTY as any;
107
108 await runner.runSchematic(migrationName, {}, appTree);
109
110 return {logOutput};
111 };
112
113 return {runner, appTree, writeFile, runFixers};
114}

Callers 1

defineJasmineTestCasesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected