Testing Unit

Unit testing patterns for isolated business logic tests — AAA pattern, parametrized tests (test.each, @pytest.mark.parametrize), fixture scoping (function/module/session), mocking with MSW/VCR at network level, and test data management with factories (FactoryBoy, faker-js). Use when writing unit tests, setting up mocks, structuring test data, optimizing test speed, choosing fixture scope, or reducing test boilerplate. Covers Vitest, Jest, pytest.

yonatangross 044f19e 22 files · 63.6 KB Updated

File contents

yonatangross/orchestkit/tree/main/src/skills/testing-unit commit 044f19ef9d

Frequently asked questions

npx skillmds add yonatangross/testing-unit