gavinvaske / the_recipe_book

0 stars 0 forks source link

Upgrade `mongodb-memory-server` #369

Closed gavinvaske closed 1 month ago

gavinvaske commented 1 month ago

Description

Using this PR to upgrade mongodb-memory-server

I found that only minor version upgrades work, but in the circleci CI/CD pipeline, any major version updates fail there (but work locally, naturally..)

If flaky tests arrive again (and they will) around saving duplicate unique db properties:

Look into putting the following into a beforeEach in the tests that are acting up:

SomeModel.syncIndex() mongoose.syncIndexes()