refactor(compartment-mapper): Separate symlink test
ADD
packages/compartment-mapper/test/fixtures-symlink/app/index.js
+export * from 'symlink';

ADD
packages/compartment-mapper/test/fixtures-symlink/app/node_modules/symlink
+../../deps/node_modules/symlink
\ No newline at end of file

ADD
packages/compartment-mapper/test/fixtures-symlink/app/package.json
+{
+ "name": "app",
+ "type": "module",
+ "dependencies": {
+ "symlink": "*"
+ }
+}

ADD
packages/compartment-mapper/test/fixtures-symlink/deps/node_modules/symlink-peer/index.js
+export const meaning = 42;

ADD
packages/compartment-mapper/test/fixtures-symlink/deps/node_modules/symlink-peer/package.json
+{
+ "name": "symlink-peer",
+ "type": "module"
+}

ADD
packages/compartment-mapper/test/fixtures-symlink/deps/node_modules/symlink/index.js
+export * from 'symlink-peer';

ADD
packages/compartment-mapper/test/fixtures-symlink/deps/node_modules/symlink/package.json
+{
+ "name": "symlink",
+ "type": "module",
+ "dependencies": {
+ "symlink-peer": "*"
+ }
+}

ADD
packages/compartment-mapper/test/test-symlink.js
+import 'ses';
+import test from 'ava';
+import { scaffold } from './scaffold.js';
+
+const fixture = new URL(
+ 'fixtures-symlink/app/index.js',
+ import.meta.url,
+).toString();
+
+const fixtureAssertionCount = 1;
+
+const assertFixture = (t, { namespace }) => {
+ t.is(namespace.meaning, 42);
+};
+
+scaffold('symlink', test, fixture, assertFixture, fixtureAssertionCount);

refactor(compartment-mapper): Separate symlink test