diff --git a/packages/compartment-mapper/test/fixtures-cjs-compat/node_modules/require-resolve/main.js b/packages/compartment-mapper/test/fixtures-cjs-compat/node_modules/require-resolve/main.js index 065f95a991..9f4ff3693d 100644 --- a/packages/compartment-mapper/test/fixtures-cjs-compat/node_modules/require-resolve/main.js +++ b/packages/compartment-mapper/test/fixtures-cjs-compat/node_modules/require-resolve/main.js @@ -1,6 +1,9 @@ const adaptToAssertions = (f) => { try { - return (f()).replace(/^.*compartment-mapper\/test/,'/skipped'); + let result = f(); + result = result.replace(/\\/g,'/'); + result = result.replace(/^.*compartment-mapper\/test/,'/skipped'); + return result; } catch (e) { return e.message.split('\n')[0]; }