(mode, filePath, sceneValue)
| 90 | } |
| 91 | |
| 92 | function applySceneToFile(mode, filePath, sceneValue) { |
| 93 | if (mode === "widget") { |
| 94 | return rewriteWidgetViewBanner(filePath, sceneValue); |
| 95 | } |
| 96 | const source = readFileSync(filePath, "utf8"); |
| 97 | const result = applyRouterHeroPrefix(source, sceneValue); |
| 98 | if (result.changed) { |
| 99 | writeFileSync(filePath, result.nextSource, "utf8"); |
| 100 | } |
| 101 | return result; |
| 102 | } |
| 103 | |
| 104 | export async function runRecordSequence({ |
| 105 | mode, |
no test coverage detected