Skip to content

Commit

Permalink
fix: do not throw error if dotenv is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
markin-io committed Sep 29, 2023
1 parent 50354a4 commit d889fab
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions packages/js-dash-sdk/karma/karma.functional.conf.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
6 changes: 0 additions & 6 deletions packages/wallet-lib/karma/karma.functional.conf.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 0 additions & 4 deletions packages/wallet-lib/karma/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ const karmaWebpack = require('karma-webpack');

const webpackConfig = require('../webpack.config');

if (dotenvResult.error) {
throw dotenvResult.error;
}

module.exports = {
client: {
mocha: {
Expand Down

0 comments on commit d889fab

Please sign in to comment.