diff --git a/api/src/routes/appStream/appStreamHtml.ts b/api/src/routes/appStream/appStreamHtml.ts
index 3edf09f..0f48b10 100644
--- a/api/src/routes/appStream/appStreamHtml.ts
+++ b/api/src/routes/appStream/appStreamHtml.ts
@@ -14,12 +14,12 @@ const style = ``
@@ -31,7 +31,10 @@ const singleAppStreamHtml = (
logo?: string
) =>
`
-
+
${streamServiceName}
`
diff --git a/api/src/routes/appStream/index.ts b/api/src/routes/appStream/index.ts
index 793efbd..ea379e7 100644
--- a/api/src/routes/appStream/index.ts
+++ b/api/src/routes/appStream/index.ts
@@ -40,17 +40,6 @@ export const publishAppStream = async (
if (!streamServiceName) {
streamServiceName = `AppStreamName${appCount + 1}`
- } else {
- const alreadyDeployed = process.appStreamConfig[streamServiceName]
- if (alreadyDeployed) {
- if (alreadyDeployed.appLoc === appLoc) {
- // redeploying to same streamServiceName
- } else {
- // trying to deploy to another existing streamServiceName
- // assign new streamServiceName
- streamServiceName = `${streamServiceName}-${appCount + 1}`
- }
- }
}
router.use(`/${streamServiceName}`, express.static(pathToDeployment))
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()