From 5939b004bfe6aa9c8c43c438c7cdad09ef6a7ec1 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Fri, 1 Aug 2025 09:16:23 +0200 Subject: [PATCH] Actually flush the file Signed-off-by: Matteo Collina --- lib/mock/snapshot-recorder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mock/snapshot-recorder.js b/lib/mock/snapshot-recorder.js index 298fcac1d66..8e8a00b2068 100644 --- a/lib/mock/snapshot-recorder.js +++ b/lib/mock/snapshot-recorder.js @@ -394,7 +394,7 @@ class SnapshotRecorder { snapshot })) - await writeFile(resolvedPath, JSON.stringify(data, null, 2), 'utf8', { flush: true }) + await writeFile(resolvedPath, JSON.stringify(data, null, 2), { flush: true }) } /**