From c4b6513ce08aa40614cfe95daf732ae4f57ef409 Mon Sep 17 00:00:00 2001 From: Gar Date: Wed, 22 Jun 2022 07:07:37 -0700 Subject: [PATCH] chore: fix global test fixture for windows --- test/lib/commands/query.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/lib/commands/query.js b/test/lib/commands/query.js index d4e98f28c69b3..daaf55f922d94 100644 --- a/test/lib/commands/query.js +++ b/test/lib/commands/query.js @@ -101,7 +101,17 @@ t.test('global', async t => { config: { global: true, }, + // This is a global dir that works in both windows and non-windows, that's + // why it has two node_modules folders globalPrefixDir: { + node_modules: { + lorem: { + 'package.json': JSON.stringify({ + name: 'lorem', + version: '2.0.0', + }), + }, + }, lib: { node_modules: { lorem: {