Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 872 Bytes

File metadata and controls

38 lines (25 loc) · 872 Bytes

test-website-performance-with-puppeteer

Code used in article https://michaljanaszek.com/blog/test-website-performance-with-puppeteer

Build Setup

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

Run tests

# 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