{"library":"mock-typeorm","type":"library","category":null,"description":"Mock TypeORM is a TypeScript-first library designed to facilitate unit and integration testing of TypeORM-based applications by preventing actual database interactions. It is currently at version 1.0.4 and appears to be actively maintained, indicated by recent GitHub activity and a workflow badge. The package differentiates itself by utilizing Sinon.js for mocking, which makes it compatible with a wide range of Node.js testing frameworks such as Jest, Mocha, and Vitest, offering flexibility that some other mocking approaches (e.g., Jest-specific mocks) might lack. It provides a straightforward API to mock TypeORM's `DataSource`, `EntityManager`, `Transaction`, `QueryBuilder`, and `Repository` methods, enabling developers to control database responses programmatically without needing a real database connection. This approach significantly speeds up tests and makes them more deterministic and isolated, avoiding the complexities and flakiness associated with test databases.","language":"javascript","status":"active","version":"1.0.4","tags":["javascript","typeorm","mocking","mock typeorm","mock-typeorm","typescript","nodejs"],"install":[{"cmd":"npm install mock-typeorm","imports":["import { MockTypeORM } from 'mock-typeorm';","import { Repository } from 'typeorm';"]},{"cmd":"yarn add mock-typeorm","imports":[]},{"cmd":"pnpm add mock-typeorm","imports":[]}],"homepage":"https://mock-typeorm-docs.vercel.app","github":"https://github.com/jazimabbas/mock-typeorm","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mock-typeorm","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/mock-typeorm/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}