(path: string, content: string)
| 837 | } |
| 838 | |
| 839 | async writeFile(path: string, content: string) { |
| 840 | if (path === this.failPath) { |
| 841 | throw new Error(`simulated write failure: ${path}`); |
| 842 | } |
| 843 | return this.inner.writeFile(path, content); |
| 844 | } |
| 845 | |
| 846 | async writeFileBytes(path: string, content: Uint8Array) { |
| 847 | if (path === this.failPath) { |