Best practices for writing JavaScript/TypeScript tests using Jest, including mocking strategies, test structure, and common patterns.