From d3e7e5a168f1c4323d72b172f43372e35ceaa1e3 Mon Sep 17 00:00:00 2001 From: Roberto Tonino Date: Sat, 24 Apr 2021 21:12:52 +0200 Subject: [PATCH] workflow(server): added dotenv dep --- server/jest.config.js | 3 ++- server/package.json | 1 + server/yarn.lock | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/server/jest.config.js b/server/jest.config.js index db39846..1328aa4 100644 --- a/server/jest.config.js +++ b/server/jest.config.js @@ -2,5 +2,6 @@ module.exports = { clearMocks: true, roots: ['/src'], testEnvironment: 'node', - preset: 'ts-jest' + preset: 'ts-jest', + setupFiles: ['dotenv/config'] } diff --git a/server/package.json b/server/package.json index a9956c5..486923b 100644 --- a/server/package.json +++ b/server/package.json @@ -17,6 +17,7 @@ "debug": "2.6.9", "deemix": "0.0.1", "deezer-js": "0.0.8", + "dotenv": "8.2.0", "express": "4.17.1", "morgan": "1.10.0", "ramda": "0.27.1", diff --git a/server/yarn.lock b/server/yarn.lock index ca4e884..1c17069 100644 --- a/server/yarn.lock +++ b/server/yarn.lock @@ -2011,6 +2011,11 @@ dot-prop@^5.2.0: dependencies: is-obj "^2.0.0" +dotenv@8.2.0: + version "8.2.0" + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a" + integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw== + duplexer3@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"