MCPcopy Index your code
hub / github.com/angular/angular-cli / modifyFileAndWaitUntilUpdated

Function modifyFileAndWaitUntilUpdated

tests/e2e/tests/vite/ssr-entry-hono.ts:94–106  ·  view source on GitHub ↗
(
  filePath: string,
  searchValue: string,
  replaceValue: string,
  hmr = false,
)

Source from the content-addressed store, hash-verified

92}
93
94async function modifyFileAndWaitUntilUpdated(
95 filePath: string,
96 searchValue: string,
97 replaceValue: string,
98 hmr = false,
99): Promise<void> {
100 await Promise.all([
101 waitForAnyProcessOutputToMatch(
102 hmr ? /Component update sent to client/ : /Page reload sent to client/,
103 ),
104 setTimeout(100).then(() => replaceInFile(filePath, searchValue, replaceValue)),
105 ]);
106}

Callers 1

ssr-entry-hono.tsFile · 0.70

Calls 2

replaceInFileFunction · 0.90

Tested by

no test coverage detected