Skip to content

Commit

Permalink
[cloud-carbon-footprint#959] Integration tests - fix mocking issue fo…
Browse files Browse the repository at this point in the history
…r emissions API
  • Loading branch information
tinamthomas committed Nov 9, 2022
1 parent 46247c4 commit 7bf424a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/app/src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7bf424a

Please sign in to comment.