From 7bf424a4f6ce8359a1890d64c4460cc69a2b8107 Mon Sep 17 00:00:00 2001 From: Tina Thomas Date: Wed, 9 Nov 2022 09:41:04 -0500 Subject: [PATCH] [#959] Integration tests - fix mocking issue for emissions API --- packages/app/src/App.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/app/src/App.ts b/packages/app/src/App.ts index 2fb7617dc..3e61d41a2 100644 --- a/packages/app/src/App.ts +++ b/packages/app/src/App.ts @@ -45,7 +45,9 @@ export default class App { const AWS = config.AWS const GCP = config.GCP const AZURE = config.AZURE - + if (process.env.TEST_MODE) { + return [] + } if (request.region) { const estimatesForAccounts: EstimationResult[][] = [] for (const account of AWS.accounts) {