Seed database once before tests run #540
Unanswered
boobooking
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way to configure Pest to
???
As of now all traits (RefreshDatabase, DatabaseMigrations) are running before each test - and it's a huge waste.
The problem with DatabaseMigrations is that it recreates database before each test.
The problem with RefreshDatabase it that you can not seed database once - it tries to seed before each test, so you can not seed any unique data.
Beta Was this translation helpful? Give feedback.
All reactions