From d54e23d5a1a2b7988704e73e9533b5d5d62538f6 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Mon, 31 Mar 2025 19:21:51 +0200 Subject: [PATCH] Ensure `webpack` executable is found in CI (#17470) This PR will fix CI on the main branch where `webpack` could not be found on macOS (but it worked on Linux). Going to run [ci-all] to verify the changes. --- integrations/webpack/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/webpack/index.test.ts b/integrations/webpack/index.test.ts index 3c59d0bab..b4447905c 100644 --- a/integrations/webpack/index.test.ts +++ b/integrations/webpack/index.test.ts @@ -63,12 +63,12 @@ test( }, async ({ fs, spawn, exec, expect }) => { // Generate the initial build so output CSS files exist on disk - await exec('webpack --mode=development') + await exec('pnpm webpack --mode=development') // NOTE: We are writing to an output CSS file which is not being ignored by // `.gitignore` nor marked with `@source not`. This should not result in an // infinite loop. - let process = await spawn('webpack --mode=development --watch') + let process = await spawn('pnpm webpack --mode=development --watch') await process.onStdout((m) => m.includes('compiled successfully in')) expect(await fs.dumpFiles('./dist/*.css')).toMatchInlineSnapshot(`