Skip to content

Update mongodb-memory-server to 8.2.3#2083

Open
trillium wants to merge 2 commits intohackforla:developmentfrom
trillium:trilliumsmith/ts.751
Open

Update mongodb-memory-server to 8.2.3#2083
trillium wants to merge 2 commits intohackforla:developmentfrom
trillium:trilliumsmith/ts.751

Conversation

@trillium
Copy link
Member

@trillium trillium commented Feb 3, 2026

Summary

  • Updates mongodb-memory-server from 6.9.0 to 8.2.3 to address security audit warnings
  • Updates jest from 26.4.0 to 29.7.0 (required for node: protocol support used by mongoose 8.x)
  • Updates test setup and test files for compatibility with new package versions

Changes Made

  • package.json: Updated mongodb-memory-server (6.9.0 → 8.2.3) and jest (26.4.0 → 29.7.0)
  • setup-test.js: Updated for mongodb-memory-server v8 API (MongoMemoryServer.create() instead of new MongoMemoryServer())
  • Test files: Converted all async (done) => {} patterns to async () => {} (Jest 29 requirement)
  • models/user.test.js: Added beforeEach cleanup for test isolation
  • .eslintrc.json: Added root: true and requireConfigFile: false to fix config issues

Test plan

  • All unit tests pass (17 test suites, 90 tests)
  • Project builds and loads without errors

Resolves #751

evanyang1 and others added 2 commits February 2, 2026 19:11
- Update mongodb-memory-server from 6.9.0 to 8.2.3
- Update Jest from 26.4.0 to 29.7.0 (required for node: protocol)
- Update setup-test.js for mongodb-memory-server v8 API changes
- Fix all test files to use async/await instead of async/done pattern
- Add beforeEach cleanup to user.test.js for test isolation
- Fix ESLint config to prevent parent directory conflicts

Resolves hackforla#751
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update package: mongodb-memory-server

2 participants