Workflow Steps
- Write failing E2E tests FIRST (RED):
- Write E2E test for API boundaries (Controller/Resolver) using
/add-e2e-testskill. - Run
npm run test:e2eto verify it FAILS.
- Write E2E test for API boundaries (Controller/Resolver) using
- Write unit tests (RED):
- Use the
/add-testsskill to write failing unit tests for the Services and Resolvers/Controllers. - Run
npm run testto verify they FAIL.
- Use the
- Write implementation (GREEN):
- Implement the minimum code required in the Controller/Resolver and Service to make both E2E and unit tests pass.
- Run tests until they PASS.
- Refactor and Check (REFACTOR):
- Run
npm run checkto fix linting and types. - Run
npm run test:covto ensure test coverage remains above 80%.
- Run
Do not write production code before writing the test assertions.
Source: uxname/liteend — distributed by TomeVault.