elliotf / mocha-mongoose

test helpers for using mongodb with mocha
MIT License
107 stars 21 forks source link

mocha-mongoose does not destroy indexes #2

Closed elliotf closed 11 years ago

elliotf commented 11 years ago

Collections are only truncated, not cleared.

Indexes persist between test runs, which leads to odd behavior when you are not creating/depending on an index anymore.

This is likely something that only needs to be done once per test run, rather than before each test.

elliotf commented 11 years ago

It would probably be dumb for it to destroy indexes. Closing.