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.
This commit is contained in:
Robin Malfait 2025-03-31 19:21:51 +02:00 • committed by GitHub
parent 53801091a0
commit d54e23d5a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(`