]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
use absolute path to output lcov file for coveralls (#28075)
authorJohann-S <johann.servoire@gmail.com>
Thu, 17 Jan 2019 10:06:43 +0000 (11:06 +0100)
committerGitHub <noreply@github.com>
Thu, 17 Jan 2019 10:06:43 +0000 (11:06 +0100)
js/tests/karma.conf.js

index a6c6905985a5b2f3e74674752604396ef68bd6b1..52a3ba23e4efd8c374c2a9aa30fa14cb2a483402 100644 (file)
@@ -1,6 +1,7 @@
 /* eslint-env node */
 /* eslint no-process-env: 0 */
 
+const path = require('path')
 const ip = require('ip')
 const {
   browsers,
@@ -114,7 +115,7 @@ if (bundle) {
   conf.customLaunchers = customLaunchers
   conf.detectBrowsers = detectBrowsers
   conf.coverageIstanbulReporter = {
-    dir: '../coverage/',
+    dir: path.resolve(__dirname, '../coverage/'),
     reports: ['lcov', 'text-summary'],
     thresholds: {
       emitWarning: false,