In late 2022, I joined a struggling team as a part-time consultant
In late 2022, I joined a struggling team as a part-time consultant.
Here’s how we turned things around:
✅ Wrote simple @playwrightweb tests to assure evert page loads successfully.
✅ Configured CI to run lint, cspell, knip, build, and tests.
✅ Configured PRs to block merge until the CI build passes.
✅ Switched to pnpm to dramatically speed up builds.
✅ Implemented feature flags so we can merge often and continuously integrate even when features aren’t done yet.
✅ Reduced the number of environments from 6 to 3.
✅ Configured @ApiMocking to support coding and testing against mocks.
✅ Created custom dev tools to accelerate development. These tools support instantly switching users, changing mock data, and toggling settings.
✅ Unifying UI, logic, and API repos into a monorepo so the 3 are continuously integrated and checked via a single CI build.
The transformation has been amazing.
@playwrightweb Oops, typo. "evert page" = "every page"
@playwrightweb Here's the problems this solved:
Slow path to prod
Frequent production bugs
High overhead of maintaining many environments
Slow integration between UI/logic/API
Lack of communication between developers
Lack of automation made quality checks time-consuming and error prone