diff --git a/config/jest/jest.config.js b/config/jest/jest.config.js index 1aeaf6c8b..3ab4568ab 100644 --- a/config/jest/jest.config.js +++ b/config/jest/jest.config.js @@ -50,5 +50,4 @@ module.exports = { '/test/testSetup.js', ], testTimeout: 100000, - testRetryTimes: 3, }; diff --git a/test/testSetup.js b/test/testSetup.js index 6a899f89f..b9be0e737 100644 --- a/test/testSetup.js +++ b/test/testSetup.js @@ -6,6 +6,8 @@ CONFIG.set('env', 'test'); const {managerUsername, bioinformaticianUsername} = CONFIG.get('testing'); beforeAll(async () => { + jest.retryTimes(5, {logErrorsBeforeRetry: true}); + const [managerUser] = await db.models.user.findOrCreate({ where: { username: managerUsername,