Skip to content

tinybench-plugin doesn't work with tinybench@4 #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alexander-akait opened this issue May 15, 2025 · 0 comments
Open

tinybench-plugin doesn't work with tinybench@4 #44

alexander-akait opened this issue May 15, 2025 · 0 comments

Comments

@alexander-akait
Copy link

Output:

TypeError: Cannot use 'in' operator to search for 'uri' in undefined
      at isCodSpeedBenchOptions (/home/runner/work/webpack/webpack/node_modules/@codspeed/tinybench-plugin/dist/index.cjs.js:67:16)
      at bench.run (/home/runner/work/webpack/webpack/node_modules/@codspeed/tinybench-plugin/dist/index.cjs.js:92:19)
      at file:///home/runner/work/webpack/webpack/test/BenchmarkTestCases.benchmark.mjs:648:13

Ref: https://github.com/webpack/webpack/actions/runs/15047287430/job/42292959584?pr=19533

in tinybench@4 options for a task are stored in fnOpts, but in the plugin code tries to get them from task.opts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant