From ff7441f3c51229a9535c6838edc7bb9ea350e0f3 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Sat, 26 Feb 2022 11:39:25 +0100 Subject: [PATCH] fixed cy:docker: --- cypress/tsconfig.json | 5 +++++ docker-compose.cypress.yml | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 cypress/tsconfig.json diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json new file mode 100644 index 0000000..d0ef97c --- /dev/null +++ b/cypress/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "preserveValueImports": false + } +} diff --git a/docker-compose.cypress.yml b/docker-compose.cypress.yml index 90c9323..86a7aeb 100644 --- a/docker-compose.cypress.yml +++ b/docker-compose.cypress.yml @@ -49,7 +49,8 @@ services: CYPRESS_mongodbUri: mongodb://mongo CYPRESS_tibiApiUrl: http://tibi-server:8080/api/v1 CYPRESS_projectApiConfig: /workdir/api/config.yml - DISPLAY: host.docker.internal:0.0 + #DISPLAY: host.docker.internal:0.0 + DISPLAY: $DISPLAY LIBGL_ALWAYS_INDIRECT: 1 command: sh ./scripts/cy-command.docker.sh $CY_COMMAND #command: yarn cy:$CY_COMMAND @@ -58,5 +59,7 @@ services: volumes: - ./:/workdir - ~/.cache:/home/node/.cache + - $HOME/.Xauthority:$HOME/.Xauthority + - /tmp/.X11-unix:/tmp/.X11-unix working_dir: /workdir user: $CURRENT_UID