hammzj/cypress-load-balancer ? reverse-engineered prompt
Reverse engineered prompt
Build me a small TypeScript package for Cypress that helps split test files across multiple runners so I can parallelize tests in CI or locally. I want to be able to install it as a dev dependency, add it to my Cypress setup, and then turn it on by passing a runner value like 1/4 from the command line or through an environment variable.
It should keep track of how long each spec file takes, use that history to spread the work more evenly, and save the data in a hidden file inside the project. Please make it work for both e2e and component testing, and make sure it plays nicely with existing Cypress config and other plugins. If there are any setup details or caveats, include clear docs and a simple example for running multiple processes. Look up current Cypress docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit