Skip to content

jorgermduarte/template-k6-load-tests

Repository files navigation

K6 - Webpack

A example repository for k6 usage with webpack using typescript.

Getting Started

Extension required:

https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint

Commands required

  • brew install k6
  • npm install

Commands Available

"start": "k6 run build/build.bundle.js",
"webpack": "webpack",
"prepare": "npm run compile",
"lint": "gts lint",
"clean": "gts clean",
"fix": "gts fix",
"posttest": "npm run lint",
"compile": "tsc",
"pretest": "npm run compile"

Project Content

  • Webpack
  • K6 integration
  • K6 automatic reports
  • Prettier
  • Eslint
  • Husky Hooks
  • Typescript