Skip to content

Commit

Permalink
Test-Environment change for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiollende committed Apr 11, 2024
1 parent 19144b6 commit fa73bb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- run: npm --prefix users install
- run: npm --prefix gatewayservice install
- run: npm --prefix webapp install
- run: CI=false npm --prefix webapp run build
- run: CI=false npm --prefix webapp run build CI=true
- run: npm --prefix webapp run test:e2e
docker-push-webapp:
name: Push webapp Docker Image to GitHub Packages
Expand Down
6 changes: 2 additions & 4 deletions webapp/e2e/test-environment-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ const { MongoMemoryServer } = require('mongodb-memory-server');


let mongoserver;
let userservice;
let authservice;
let users;
let wikidataservice;
let gatewayservice;

Expand All @@ -14,8 +13,7 @@ async function startServer() {
process.env.MONGODB_URI = mongoUri;
gatewayservice = await require("../../gatewayservice/gateway-service");
wikidataservice = await require("../../wikidataservice/index");
authservice = await require("../../users/authservice/auth-service");
userservice = await require("../../users/userservice/user-service");
users = await require("../../users/index");
}

startServer();

0 comments on commit fa73bb1

Please sign in to comment.