diff --git a/common/persist.ts b/common/persist.ts index 8a294c9..8e7871e 100644 --- a/common/persist.ts +++ b/common/persist.ts @@ -21,7 +21,10 @@ export function persist( const dir = path.dirname(file); fs.mkdirSync(dir, { recursive: true }); - fs.writeFileSync(file, format(input, rules, [...outcomes]) + "\n"); + fs.writeFileSync( + file, + (await format(input, rules, [...outcomes])) + "\n" + ); return `${message}, see the full report at ${file}`; });