I was not able to make it work. This is the log when it fails:
% yarn test:percy
$ percy exec -- pnpm run story:build
[percy] Successfully downloaded Chromium 929475
[percy] Percy has started!
[percy] Running "pnpm run story:build"
> @ story:build /..../nuxt-histoire
> histoire build
ℹ Using Tailwind CSS from ~/assets/scss/main.scss
ℹ Vite client warmed up in 1693ms
✔ Nitro built in 1426 ms
const browser = await puppeteer.launch();
TypeError: Cannot read properties of undefined (reading 'launch')
at Object.onBuild (/........../node_modules/@histoire/plugin-percy/dist/index.js:20:39)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async build (file:///........../node_modules/histoire/dist/node/build.js:43:13)
at async buildCommand (file:///........../node_modules/histoire/dist/node/commands/build.js:7:5)
ERROR Command failed with exit code 1.
[percy] Finalized build #1: https://percy.io/7ae011fa/nuxt-histoire/builds/22228121
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.