test(compartment-mapper): Validate reexport as name in bundles
ADD
packages/compartment-mapper/test/node_modules/bundle/import-and-reexport-name-as-from-me.js
+export const gray = '#777';

MODIFY
packages/compartment-mapper/test/node_modules/bundle/main.js
packages/compartment-mapper/test/node_modules/bundle/main.js
@@ -5,6 +5,9 @@ print(foo);
import * as bar from './import-all-from-me.js';
print(bar);
+// Once more with feeling.
+import * as baz from './import-all-from-me.js';
+print(baz);
import { fizz, buzz } from './import-named-exports-from-me.js';
print(fizz);
@@ -13,8 +16,9 @@ print(buzz);
import { color as colour } from './import-named-export-and-rename.js';
print(colour);
-import { qux } from './reexport-name.js';
+import { qux, grey } from './reexport-name.js';
print(qux);
+print(grey);
import * as colors from './reexport-all.js';
print(colors);

MODIFY
packages/compartment-mapper/test/node_modules/bundle/reexport-name.js
packages/compartment-mapper/test/node_modules/bundle/reexport-name.js
+// reexport-name
export { qux } from './import-and-reexport-name-from-me.js';
+export { gray as grey } from './import-and-reexport-name-as-from-me.js';

MODIFY
packages/compartment-mapper/test/test-bundle.js
packages/compartment-mapper/test/test-bundle.js
@@ -20,10 +20,19 @@ const expectedLog = [
u: 'you',
y: 'why',
},
+ {
+ c: 'sea',
+ i: 'eye',
+ q: 'cue',
+ k: 'que',
+ u: 'you',
+ y: 'why',
+ },
'fizz',
'buzz',
'blue',
'qux',
+ '#777',
{
red: '#f00',
green: '#0f0',

test(compartment-mapper): Validate reexport as name in bundles