{"library":"ts-mockery","type":"library","category":null,"description":"ts-mockery is a TypeScript mocking library designed for creating type-safe and intuitive mocks for unit testing. Currently at version 2.0.0, it provides a comprehensive suite of features including full IntelliSense support, deep nested object mocking, and automatic spy setup for functions. The library integrates seamlessly with popular testing frameworks such as Jest and Jasmine, offering a consistent API across different test runners. Its key differentiators include a strong emphasis on compile-time type safety through partial object mocking with `RecursivePartial<T>`, robust Promise handling, and advanced capabilities for mocking static methods and imported modules. While a specific release cadence isn't explicitly documented, its major versioning indicates active development and a commitment to modern TypeScript practices, requiring TypeScript 4.5 or newer.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","Mock","Testing","TypeScript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ts-mockery","imports":["import { Mock } from 'ts-mockery';","import { Mock } from 'ts-mockery'; const myMock = Mock.of<MyInterface>({});","import { Mock } from 'ts-mockery'; const func = Mock.noop;"]},{"cmd":"yarn add ts-mockery","imports":[]},{"cmd":"pnpm add ts-mockery","imports":[]}],"homepage":null,"github":"https://github.com/ike18t/ts-mockery","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts-mockery","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ts-mockery/compatibility"}}