diff --git a/tests/tests-workspaces/packages/b/package.json b/tests/tests-workspaces/packages/b/package.json index acc4f3be..8d3f7cb1 100644 --- a/tests/tests-workspaces/packages/b/package.json +++ b/tests/tests-workspaces/packages/b/package.json @@ -3,12 +3,9 @@ "version": "0.0.0", "type": "module", "scripts": { - "test": "node --loader=esmock --test" + "test": "node --test" }, "dependencies": { "a": "^0.0.0" - }, - "devDependencies": { - "esmock": "^2.3.8" } } diff --git a/tests/tests-workspaces/packages/b/test.js b/tests/tests-workspaces/packages/b/test.js index 0d566e4b..827a41e2 100644 --- a/tests/tests-workspaces/packages/b/test.js +++ b/tests/tests-workspaces/packages/b/test.js @@ -1,7 +1,7 @@ -import esmock from 'esmock' import module from 'module' import test from 'node:test' import assert from 'node:assert/strict' +import esmock from '../../../../src/esmock.js' test('works ootb', async () => { const sut = await esmock('./index.js', {