446 B
446 B
Project Hints
Deno Compatibility
mongodb-memory-server Import
- The package uses a default import for
mongodb-memory-serverints/smartmongo.plugins.ts - Syntax:
import mongoPlugin from 'mongodb-memory-server'; - This works in both Node.js and Deno environments
- Why: Deno wraps CommonJS exports in a
defaultproperty, so default imports are required - Fixed in version 2.0.13 (changed from
import * as mongoPlugin)