diff --git a/test/hook/duplicate-exports.mjs b/test/hook/duplicate-exports.mjs index 296af64..2523180 100644 --- a/test/hook/duplicate-exports.mjs +++ b/test/hook/duplicate-exports.mjs @@ -1,13 +1,4 @@ -import Hook from '../../index.js' -import { foo } from '../fixtures/duplicate.mjs' -import { strictEqual } from 'assert' +import * as lib from '../fixtures/duplicate.mjs' +import { notEqual } from 'assert' -Hook((exports, name) => { - if (name.endsWith('/duplicate.mjs')) { - // The last export always takes priority - strictEqual(exports.foo, 'b') - exports.foo = '1' - } -}) - -strictEqual(foo, '1') +notEqual(lib, undefined)