Add Tests
Workflow
- •Identify the package under
packages/that contains the target function. - •Find or create a test file in
packages/<pkg>/__tests__/. - •Follow the naming pattern:
- •
describe('functionName', () => { it('should ...') })
- •
- •Cover at least:
- •Common expected behavior
- •Edge cases
- •Use deterministic inputs and avoid external I/O unless required.
- •Suggest running focused tests:
- •
TEST_API=<package> npm run test
- •