Cypress docs isn't very clear on how to go about resetting the database after every test. I understand that you're to use the function: beforeEach() in a format similar format to:
beforeEach(function () {
cy.task('restore_database_function')
})
I don't seem to figure out how that function looks like in relation to my database (Postgre - PGAdmin 4).