소개
This skill provides specialized guidance for mastering complex testing scenarios in JavaScript and TypeScript using frameworks like Jest and Vitest. It equips developers with the patterns necessary to mock entire modules, create partial spies for existing objects, and control time with fake timers for asynchronous logic. By enforcing best practices in mock lifecycle management and highlighting common anti-patterns, it ensures that unit and integration tests remain isolated, reliable, and maintainable across both frontend and backend environments.