fix(compartment-mapper): adapt require.resolve assertion to Windows also
MODIFY
packages/compartment-mapper/test/fixtures-cjs-compat/node_modules/require-resolve/main.js
packages/compartment-mapper/test/fixtures-cjs-compat/node_modules/require-resolve/main.js
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];
}

fix(compartment-mapper): adapt require.resolve assertion to Windows also