* Overwrite the entire content of `fileName` with `newText`. If cursor is * present in `newText`, it will be removed and the position of the cursor * will be returned.
(fileName: string, newText: string)
| 203 | * will be returned. |
| 204 | */ |
| 205 | overwrite(fileName: string, newText: string): OverwriteResult { |
| 206 | const scriptInfo = this.getScriptInfo(fileName); |
| 207 | return this.overwriteScriptInfo(scriptInfo, newText); |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * Overwrite an inline template defined in `fileName` and return the entire |
no test coverage detected