vineet0818/k6-project ? reverse-engineered prompt
Reverse engineered prompt
Build me a small k6 performance testing project for an API that uses a Bearer token for auth.
I want to be able to run load tests against a few different endpoints or scenarios, use reusable helper code and request payloads, and save the results into a reports folder. Please set it up so the tests are easy to run from the command line, and make the environment token come from an env var instead of hardcoding it. If it helps, include a couple of sample scenarios that show rate limiting or similar API behavior, plus a clean way to organize the test data, shared functions, and config. I’d also like the project to be ready to install with npm and then run the k6 scripts without much setup.
If you need current k6 docs or best practices, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit