From 0c0301433c98b7c10d6eca2a4fec7164e8b13dbe Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Thu, 24 Mar 2022 04:22:30 +0500 Subject: [PATCH] test: fixed --- api/src/utils/appStreamConfig.ts | 2 ++ api/src/utils/copySASjsCore.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/api/src/utils/appStreamConfig.ts b/api/src/utils/appStreamConfig.ts index 39c02af..867964d 100644 --- a/api/src/utils/appStreamConfig.ts +++ b/api/src/utils/appStreamConfig.ts @@ -5,6 +5,8 @@ import { AppStreamConfig } from '../types' import { getTmpAppStreamConfigPath } from './file' export const loadAppStreamConfig = async () => { + if (process.env.NODE_ENV === 'test') return + const appStreamConfigPath = getTmpAppStreamConfigPath() const content = (await fileExists(appStreamConfigPath)) diff --git a/api/src/utils/copySASjsCore.ts b/api/src/utils/copySASjsCore.ts index 3bce118..0352dd0 100644 --- a/api/src/utils/copySASjsCore.ts +++ b/api/src/utils/copySASjsCore.ts @@ -10,6 +10,8 @@ import { import { getTmpMacrosPath, sasJSCoreMacros, sasJSCoreMacrosInfo } from '.' export const copySASjsCore = async () => { + if (process.env.NODE_ENV === 'test') return + console.log('Copying Macros from container to drive(tmp).') const macrosDrivePath = getTmpMacrosPath()