From 0f162ca4fb49d6eae0d7c48d720fa3d1dc30cc75 Mon Sep 17 00:00:00 2001 From: Vladimir Grenaderov Date: Sat, 14 Oct 2023 22:40:42 +0000 Subject: [PATCH] don't use 't' variable --- tests/tests-node/esmock.node.resolver-pnp.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests-node/esmock.node.resolver-pnp.test.js b/tests/tests-node/esmock.node.resolver-pnp.test.js index 474bf08..02825ce 100644 --- a/tests/tests-node/esmock.node.resolver-pnp.test.js +++ b/tests/tests-node/esmock.node.resolver-pnp.test.js @@ -17,11 +17,11 @@ test.beforeEach(() => { delete pnpapi.resolveRequest }) -test('should work with pnp resolver', async t => { +test('should work with pnp resolver', async ({ mock }) => { if (!module.register) return assert.ok('skip test') - pnpapi.resolveRequest = t.mock.fn(resolver) + pnpapi.resolveRequest = mock.fn(resolver) const main = await esmock('../local/main.js', { '../local/mainUtil.js': {