Limpeza do banco de dados entre os testes Mocha com Pg-promessa
describe(‘db truncation in before hook’, () => { beforeEach(‘truncating db’, () => { return db.none(‘TRUNCATE courses RESTART IDENTITY’) }); // in one test we insert data into our database it(‘inserting …
Continuar lendo