typegoose / mongodb-memory-server

Manage & spin up mongodb server binaries with zero(or slight) configuration for tests.
https://typegoose.github.io/mongodb-memory-server/
MIT License
2.56k stars 185 forks source link

Update test-runners.md #866

Closed Darkmift closed 4 months ago

Darkmift commented 4 months ago

Related Issues

hasezoey commented 4 months ago

current example caused crashes for me

are you running ESM or CommonJS?

Darkmift commented 4 months ago

current example caused crashes for me

are you running ESM or CommonJS?

ESM

hasezoey commented 4 months ago

the example works and has been tested in CommonJS, in ESM it likely does not work as mongoose does not export connection there (as ESM does not allow changing the export once set) reference

github-actions[bot] commented 4 months ago

:tada: This PR is included in version 9.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: