Skip to content

Commit

Permalink
update global file
Browse files Browse the repository at this point in the history
  • Loading branch information
olerichter00 committed Mar 21, 2024
1 parent e62bbcb commit fe65bbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ci/ci-test-js-pr
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env bash
# set -exo pipefail

UPDATED_GLOBAL_FILES=$(git diff --name-only origin/main...$CIRCLE_SHA1 | grep -E '^.+\.(ts|tsx)$' | grep -v '^src/app/Scenes/' | grep -v '^src/__generated__/')

Expand All @@ -9,7 +8,8 @@ UPDATED_FILES=$(git diff --name-only origin/main...$CIRCLE_SHA1 | grep -E '^.+\.
JEST_OPTIONS="--ci --forceExit --logHeapUsage --runInBand --reporters=default --reporters=jest-junit --shard=$(expr $CIRCLE_NODE_INDEX + 1)/$CIRCLE_NODE_TOTAL"


# Run all tests if any global files are updated
# Run all tests if any global files are updated because they could affect any test.
# If only scene files are updated, run tests only for those scenes and specific files.
if [ -z "$UPDATED_GLOBAL_FILES" ]
then
yarn jest $UPDATED_SCENES $UPDATED_FILES $JEST_OPTIONS
Expand Down
1 change: 1 addition & 0 deletions src/app/Components/Artist/Biography.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const Biography: React.FC<BiographyProps> = ({ artist }) => {
}

const text = data.biographyBlurb.text

const truncatedText = text.slice(0, MAX_CHARS)
const canExpand = text.length > MAX_CHARS

Expand Down

0 comments on commit fe65bbc

Please sign in to comment.