Code used in article https://michaljanaszek.com/blog/test-website-performance-with-puppeteer
Build vue hn applictaion
Clone https://github.com/Everettss/vue-hackernews-2.0 and inside that project run:
# install dependencies
npm install
# build for production
npm run build
# serve in production mode at `localhost:8080`
npm start
This fork of vue-hackernews-2.0
enables ServiceWorker on localhost and adds console.timeStamp
in src/views/ItemList.vue
# install dependencies
npm install
If you have running vue-hackernews-2.0
on localhost:8080
run test (for example):
# run Navigation Timing API test
# https://michaljanaszek.com/blog/test-website-performance-with-puppeteer#navigationTimingAPI
node 1/index.js