(fileName: string, content: string)
| 148 | } |
| 149 | |
| 150 | addFile(fileName: string, content: string): void { |
| 151 | const key = canonicalConfigPath(fileName, this.cwd) |
| 152 | this.files.set(key, content) |
| 153 | let dir = dirname(key) |
| 154 | while (dir && !this.dirs.has(dir)) { |
| 155 | this.dirs.add(dir) |
| 156 | const parent = dirname(dir) |
| 157 | if (parent === dir) break |
| 158 | dir = parent |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | add(emittedFiles: Record<string, string>): void { |
| 163 | for (const fileName in emittedFiles) |
no test coverage detected