Skip to content

wernken-ng/test-website-performance-with-puppeteer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%