Skip to content

Commit

Permalink
LF-4170 fix broken test by moving table cleanup into beforeEach
Browse files Browse the repository at this point in the history
  • Loading branch information
navDhammu committed Jun 20, 2024
1 parent b2996d1 commit 4d0c7e7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/api/tests/animal_identifier.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,11 @@ describe('Animal identifier type tests', () => {
let newOwner;

beforeEach(async () => {
await tableCleanup(knex);
[farm] = await mocks.farmFactory();
[newOwner] = await mocks.usersFactory();
});

afterEach(async (done) => {
await tableCleanup(knex);
done();
});

afterAll(async (done) => {
await knex.destroy();
done();
Expand Down

0 comments on commit 4d0c7e7

Please sign in to comment.