From d889fab3471e8ff2078e72cbd2df3ceaf719d341 Mon Sep 17 00:00:00 2001 From: "markin.io" Date: Fri, 29 Sep 2023 16:22:50 +0100 Subject: [PATCH] fix: do not throw error if dotenv is empty --- packages/js-dash-sdk/karma/karma.functional.conf.js | 6 ------ packages/wallet-lib/karma/karma.functional.conf.js | 6 ------ packages/wallet-lib/karma/options.js | 4 ---- 3 files changed, 16 deletions(-) diff --git a/packages/js-dash-sdk/karma/karma.functional.conf.js b/packages/js-dash-sdk/karma/karma.functional.conf.js index fde6ede4c05..94c82c0ae2d 100644 --- a/packages/js-dash-sdk/karma/karma.functional.conf.js +++ b/packages/js-dash-sdk/karma/karma.functional.conf.js @@ -1,11 +1,5 @@ -/* eslint-disable import/no-extraneous-dependencies */ -const dotenvResult = require('dotenv').config(); const options = require('./options'); -if (dotenvResult.error) { - throw dotenvResult.error; -} - module.exports = (config) => { config.set({ ...options, diff --git a/packages/wallet-lib/karma/karma.functional.conf.js b/packages/wallet-lib/karma/karma.functional.conf.js index a692d8eeb5e..1756c0010e3 100644 --- a/packages/wallet-lib/karma/karma.functional.conf.js +++ b/packages/wallet-lib/karma/karma.functional.conf.js @@ -1,11 +1,5 @@ -/* eslint-disable import/no-extraneous-dependencies */ -const dotenvResult = require('dotenv').config(); const options = require('./options'); -if (dotenvResult.error) { - throw dotenvResult.error; -} - module.exports = (config) => { config.set({ ...options, diff --git a/packages/wallet-lib/karma/options.js b/packages/wallet-lib/karma/options.js index bf1d930f568..7e1bea68698 100644 --- a/packages/wallet-lib/karma/options.js +++ b/packages/wallet-lib/karma/options.js @@ -11,10 +11,6 @@ const karmaWebpack = require('karma-webpack'); const webpackConfig = require('../webpack.config'); -if (dotenvResult.error) { - throw dotenvResult.error; -} - module.exports = { client: { mocha: {