2 ms·
In addition to the database pool approach, you can also write tests so that they are inherently independent. Each test creates and (optionally) deletes its own
by williamdclt 5y ago
In addition to the database pool approach, you can also write tests so that they are inherently independent. Each test creates and (optionally) deletes its own data, without making assumption about what else is in the database. That's not ideal, as it's hard to know you're not making a hidden assumption.