From 2e6cd5500ab335cfcb786a8d2cc975c2141bd7bd Mon Sep 17 00:00:00 2001 From: Charlike Mike Reagent Date: Thu, 19 Jul 2018 07:10:05 +0300 Subject: [PATCH] fix: force using TAP reporter in CI Signed-off-by: Charlike Mike Reagent --- package.json | 2 +- src/utils.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 20004b5..5cb10a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "asia", - "version": "0.18.1", + "version": "0.18.2", "description": "Blazingly fast, magical and minimalist testing framework, for Today and Tomorrow", "repository": "olstenlarck/asia", "author": "Charlike Mike Reagent", diff --git a/src/utils.js b/src/utils.js index 9490c20..544c492 100644 --- a/src/utils.js +++ b/src/utils.js @@ -29,6 +29,10 @@ function getRelativePath(fp) { } function getReporter(argv = {}) { + if (isCI) { + argv.reporter = 'tap'; // eslint-disable-line no-param-reassign + } + if (typeof argv.reporter === 'string') { /* eslint-disable global-require, import/no-dynamic-require */