sql-mocha

JSON →
library 1.0.0 ·javascript
verified Jun 5, 2026

A Node.js library for managing Microsoft SQL Server databases with built-in mocking capabilities for testing. Version 1.0.0 provides an easy-to-use API for executing stored procedures, queries, and transactions, with special support for mocking procedure returns via JSON files for unit tests. It includes an Express middleware for request-scoped SQL contexts and supports a variety of SQL Server types. The library is primarily used in development and testing environments where database mocking is needed.