Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ test(
);

test('captureFromMap - moduleSourceHook - receives correct parameters w/ implicit dependency', async t => {
t.plan(5);
t.plan(4);
const readPowers = makeReadPowers({ fs, url });
const moduleLocation = new URL(
'fixtures-module-source-hook/node_modules/app-implicit/index.js',
Expand All @@ -178,12 +178,7 @@ test('captureFromMap - moduleSourceHook - receives correct parameters w/ implici
};

const compartmentMap = await mapNodeModules(readPowers, moduleLocation);
t.falsy(
compartmentMap.compartments[compartmentMap.entry.compartment].modules[
'dependency-a>dependency-b'
],
'app-implicit should not have a module reference to dependency-b',
);

t.truthy(
Object.values(compartmentMap.compartments).find(
compartment => compartment.label === 'dependency-a>dependency-b',
Expand Down
Loading