From bc3bf3054a962850d8c19d521cd5d26685427102 Mon Sep 17 00:00:00 2001 From: Vladimir Grenaderov Date: Sat, 14 Oct 2023 22:50:58 +0000 Subject: [PATCH] fix test on node18 --- tests/local/pnp/enable.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/local/pnp/enable.js b/tests/local/pnp/enable.js index 2f7344c..bbbbd68 100644 --- a/tests/local/pnp/enable.js +++ b/tests/local/pnp/enable.js @@ -7,8 +7,6 @@ async function resolve (specifier, context, next) { : specifier, context) } -module.register && module.register(` +module.register && (process.versions.pnp = '3') && module.register(` data:text/javascript, export ${encodeURIComponent(resolve)}`.slice(1)) - -process.versions.pnp = '3'