Testing
Testing your apps is critical. AI coding assistants are really good at writing tests, but you should still review and understand them.
Linting should be run in git hooks (e.g. using husky).
Unit and integration tests should cover critical logic and functionality. If they run fast enough, they should be run in git hooks too.
End-to-end tests should get the most coverage, but will take longer to run.
Frontend testing - JavaScript/TypeScript
Section titled “Frontend testing - JavaScript/TypeScript”Use oxlint for linting code first.
Then use Vitest for unit and integration testing your code.
Backend testing - Go
Section titled “Backend testing - Go”Use golangci-lint for running linting and static analysis.
Use the built-in Go Test and test-tables (where appropriate) for unit and integration testing your code.
End-to-end testing
Section titled “End-to-end testing”Use Playwright for end-to-end testing your website and web applications.