Acerca de
This skill provides a comprehensive set of strategies for mocking dependencies in JavaScript and TypeScript environments using Vitest. It guides developers through implementing function mocks, method spies, module-level overrides, and timer manipulation. By emphasizing the core principle of mocking boundaries rather than internals, it helps create resilient test suites that handle external APIs, database calls, and time-sensitive logic without compromising test reliability or speed.