Closed jooj123 closed 5 years ago
Note: I know this is previously logged - but it says its fixed when its not
Also (not sure its part of same issue) it doesnt matter what warn
or error
values I put into expectations - it doesnt warn or error anymore with this latest version
Error is fixed in v4.2.1.
Regarding warn
or error
. Do you wanna pwmetrics throw it or just write in console?
error
I got running example from recipe
✘ Error: First Meaningful Paint. Expected 2000 ms, but found 4080 ms.
✘ Error: First CPU Idle. Expected 2000 ms, but found 17461 ms.
✘ Error: Time to Interactive. Expected 8000 ms, but found 23552 ms.
Config / CLI options / Steps to reproduce.
Have config:
Stack trace
yarn run v1.10.1 $ pwmetrics --config=test/performance/pwmetrics-config.js Launching Chrome
First Meaningful Paint │███████▎ 2,044 │ First Contentful Paint │█████▌ 1,556 ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────── 0 Time (ms) since navigation start 32,000
✓ Success: Run 1 of 1 finished successfully. TypeError: Cannot read property 'timings' of undefined at PWMetrics.start (/Users/martin.jujou/Documents/projects/fe-server-search-results/node_modules/pwmetrics/lib/index.js:80:90) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Screenshot
Environment
pwmetrics
version: latest (^4.1.1)