test(compartment-mapper): Verify bundles can transit package boundaries
ADD
packages/compartment-mapper/test/fixtures-0/node_modules/bundle-dep/index.js
+print('dependency');

ADD
packages/compartment-mapper/test/fixtures-0/node_modules/bundle-dep/package.json
+{
+ "name": "bundle-dep",
+ "version": "0.0.0",
+ "type": "module",
+ "scripts": {
+ "preinstall": "echo DO NOT INSTALL TEST FIXTURES; exit -1"
+ }
+}

MODIFY
packages/compartment-mapper/test/fixtures-0/node_modules/bundle/main.js
packages/compartment-mapper/test/fixtures-0/node_modules/bundle/main.js
@@ -22,3 +22,5 @@ print(grey);
import * as colors from './reexport-all.js';
print(colors);
+
+import 'bundle-dep';

MODIFY
packages/compartment-mapper/test/fixtures-0/node_modules/bundle/package.json
packages/compartment-mapper/test/fixtures-0/node_modules/bundle/package.json
"js": "mjs"
},
"main": "./main.js",
+ "dependencies": {
+ "bundle-dep": "*"
+ },
"scripts": {
"preinstall": "echo DO NOT INSTALL TEST FIXTURES; exit -1"
}

MODIFY
packages/compartment-mapper/test/test-bundle.js
packages/compartment-mapper/test/test-bundle.js
@@ -13,6 +13,7 @@ const fixture = new URL(
const { read } = makeReadPowers({ fs, url });
const expectedLog = [
+ 'dependency',
'foo',
{
c: 'sea',

test(compartment-mapper): Verify bundles can transit package boundaries