From bfb3f4e7e8af9cfc89e9fb153dc5abea13e69317 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Sat, 8 Nov 2025 02:23:58 +0700 Subject: [PATCH] test: fix `spawn ENOENT` --- pkg-manager/core/test/install/optionalDependencies.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg-manager/core/test/install/optionalDependencies.ts b/pkg-manager/core/test/install/optionalDependencies.ts index 84cbbdab6b..29a5575dcf 100644 --- a/pkg-manager/core/test/install/optionalDependencies.ts +++ b/pkg-manager/core/test/install/optionalDependencies.ts @@ -695,7 +695,9 @@ test('optional dependency is hardlinked to the store if it does not require a bu // Covers https://github.com/pnpm/pnpm/issues/7943 test('complex scenario with same optional dependencies appearing in many places of the dependency graph', async () => { prepareEmpty() - await addDependenciesToPackage({}, ['@storybook/addon-essentials@7.6.17', 'storybook@7.6.17', 'vite@5.2.8'], testDefaults()) + await addDependenciesToPackage({}, ['@storybook/addon-essentials@7.6.17', 'storybook@7.6.17', 'vite@5.2.8'], testDefaults({ + ignoreScripts: true, // temporary fix for `spawn NOENT` error + })) expect(fs.readdirSync('node_modules/.pnpm/esbuild@0.18.20/node_modules/@esbuild')).toHaveLength(1) expect(fs.readdirSync('node_modules/.pnpm/esbuild@0.20.2/node_modules/@esbuild')).toHaveLength(1)