From 45108ba9d807c162be0cf9754df9f7d5ec34208f Mon Sep 17 00:00:00 2001 From: TamtamHero <10632523+TamtamHero@users.noreply.github.com> Date: Thu, 26 Aug 2021 15:37:43 +0200 Subject: [PATCH] Fail early when a test doesn't succeed --- tests/jest.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/jest.config.js b/tests/jest.config.js index c1ba411..af09403 100644 --- a/tests/jest.config.js +++ b/tests/jest.config.js @@ -31,5 +31,9 @@ module.exports = { "**/?(*.)+(ispec|test).[tj]s?(x)", ], - setupFilesAfterEnv: ['/setupTests.js'] + // Path of the file where tests can be """decorated""" + setupFilesAfterEnv: ['/setupTests.js'], + + // Stop immediatly when a test fail + bail: true, };