Skip to content

Commit

Permalink
Restoring Cypress install to all commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
1Copenut committed Sep 18, 2023
1 parent 2fb5747 commit 0902f9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .buildkite/scripts/pipeline_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

TEST_TYPE='unit'
# TEST_TYPE='unit'

DOCKER_OPTIONS=(
-i --rm
Expand All @@ -18,10 +18,10 @@ DOCKER_OPTIONS=(

if [[ "${TEST_TYPE}" == 'lint' ]]; then
echo "[TASK]: Running linters"
DOCKER_OPTIONS+=("&& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn lint")
DOCKER_OPTIONS+=("&& yarn cypress install" "&& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn lint")
elif [[ "${TEST_TYPE}" == 'unit' ]]; then
echo "[TASK]: Running unit tests"
DOCKER_OPTIONS+=("&& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn test-unit")
DOCKER_OPTIONS+=("&& yarn cypress install" "&& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn test-unit")
elif [[ "${TEST_TYPE}" == 'cypress:16' ]]; then
echo "[TASK]: Running Cypress tests against React 16"
DOCKER_OPTIONS+=("&& yarn cypress install" "&& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn test-cypress --react-version 16")
Expand Down

0 comments on commit 0902f9a

Please sign in to comment.