Slide 14
Slide 14 text
06
And nothing more.
Create the data you need for that test
Check errors, edge cases, proper responses
Make a request (as a user or a guest) and
assert the response
Before each test, make sure the database is reset. Start
each test with a clean slate.
Reset the database
Biggest bang-for-buck at API layer
Use to test all permissions and edge cases!
Request Tests
Supercharge your
tests with Factories
Prisma Day 2021
by Chris Ball