* Saves this result to a JSON file. * * @param {string} [fileName] Path to the JSON file, relative to `output_dir`. Defaults to "result.json".
(fileName)
| 212 | * @param {string} [fileName] Path to the JSON file, relative to `output_dir`. Defaults to "result.json". |
| 213 | */ |
| 214 | save(fileName) { |
| 215 | if (!fileName) fileName = 'result.json' |
| 216 | fs.writeFileSync(path.join(store.outputDir, fileName), JSON.stringify(this.simplify(), null, 2)) |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * Adds stats to this result. |
no test coverage detected