From 076fce058c1bb91bfa135d6184faad28092711a6 Mon Sep 17 00:00:00 2001 From: joan Date: Wed, 5 Oct 2022 13:38:17 +0200 Subject: [PATCH] Exit on completion --- back/tests.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/back/tests.js b/back/tests.js index e9eaf386e..96f3258a7 100644 --- a/back/tests.js +++ b/back/tests.js @@ -41,11 +41,14 @@ async function test() { } })); + jasmine.exitOnCompletion = false; + if (isCI) { const JunitReporter = require('jasmine-reporters'); jasmine.addReporter(new JunitReporter.JUnitXmlReporter()); jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000; + jasmine.exitOnCompletion = true; } const backSpecs = [ @@ -60,10 +63,6 @@ async function test() { helpers: [], }); - if (!isCI) jasmine.exitOnCompletion = false; - else - jasmine.exitOnCompletion = true; - await jasmine.execute(); if (app) await app.disconnect(); if (container) await container.rm();