From 5d22b6ebfbf4b4ba377ebc38f97055f78176942f Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 23 Sep 2024 20:04:02 +0200 Subject: [PATCH] test: fix `assertSnapshot` when path contains a quote --- test/common/assertSnapshot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/assertSnapshot.js b/test/common/assertSnapshot.js index e0793ce5394cda..dbd4a6079861fc 100644 --- a/test/common/assertSnapshot.js +++ b/test/common/assertSnapshot.js @@ -25,7 +25,7 @@ function replaceWindowsPaths(str) { } function replaceFullPaths(str) { - return str.replaceAll(path.resolve(__dirname, '../..'), ''); + return str.replaceAll('\\\'', "'").replaceAll(path.resolve(__dirname, '../..'), ''); } function transform(...args) {