DEV Community

Discussion on: Seeding a database

Collapse
 
alvesvalentin profile image
Alvès Valentin

Quick question, when you use beforeEach do you drop your collection before? In Java we have BeforeAll does the same exists in JS ?

Collapse
 
zellwk profile image
Zell Liew 🤗

I drop my collections in afterEach

Collapse
 
alvesvalentin profile image
Alvès Valentin

okay, thanks for the answer ^