Nfs Testing Patterns

Test-writing patterns for projects scaffolded with nextjs-fullstack-starter. Use whenever the user is writing or reviewing tests in such a project, asks 'how do I test X', wants to add test coverage for a new module, or needs to debug a failing test. Covers service-layer unit tests (the high-value layer where most coverage lives), integration tests with a real Postgres (Testcontainers), Server Action tests via direct invocation, route-handler tests, and Playwright e2e. Each section explains WHAT to test at that layer and HOW so test effort lands where it pays off.

juncoding ab95b50 5 files · 20.2 KB Updated

File contents

juncoding/nextjs-fullstack-starter/tree/main/skills/nfs-testing-patterns commit ab95b50a9b

Frequently asked questions

npx skillmds@latest add juncoding/nfs-testing-patterns