-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear all entities #44
Comments
Agree, there should be an API to drop a mock database. As much as I would love to see a Perhaps we can expose a set of utils that operate on a given database instance? import { factory, drop } from '@mswjs/data'
const db = factory(...)
drop(db)
I'd love to discuss the API and once that's settled either of us can take it to works. |
|
I can take this one if you don't mind? |
I think that for testing purposes we need a way to delete all entities between tests. As an alternative, a user can loop all entities and call the delete method.
The text was updated successfully, but these errors were encountered: