(file, content)
| 194 | } |
| 195 | |
| 196 | function writeText(file, content) { |
| 197 | const target = path.join(ROOT, file); |
| 198 | fs.mkdirSync(path.dirname(target), { recursive: true }); |
| 199 | if (readText(file) !== content) fs.writeFileSync(target, content); |
| 200 | } |
| 201 | |
| 202 | function sameItem(a, b) { |
| 203 | return JSON.stringify(a) === JSON.stringify(b); |
no test coverage detected