diff --git a/tests/helpers/normalize.js b/tests/helpers/normalize.js index 86e43f4..e3834a1 100644 --- a/tests/helpers/normalize.js +++ b/tests/helpers/normalize.js @@ -14,7 +14,7 @@ const escapedCwdRegExp = new RegExp( "g" ); const normalize = str => { - let normalizedStr = str.split(CURRENT_CWD).join(""); + let normalizedStr = str.split(CURRENT_CWD).join("").split(CURRENT_CWD.replace("\\\\", "\\")).join(""); if (CURRENT_CWD.startsWith("/")) { normalizedStr = normalizedStr.replace( new RegExp(quoteMeta(CURRENT_CWD), "g"),