Skip to content

Commit

Permalink
jest test fixes ci
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-zamora committed Jun 21, 2024
1 parent 6cb45f2 commit ec595d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ jobs:
run: npm ci
- name: Copy secrets example file
run: npm run copy-secrets
- name: Prepare for jest tests
run: npm run jest:prepare-ci
- name: Run Jest tests
run: npm run silent-test -- --shard=${{ matrix.shard }}
- name: Upload coverage to codecov
Expand Down
5 changes: 5 additions & 0 deletions bin/jest-prepare-ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# create empty overrideStatic.config.json if it doesn't exist
overrideFile=overrideStatic.config.json
if [ ! -f $overrideFile ]; then
echo {} > overrideStatic.config.json
fi
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"silent-test": "NODE_OPTIONS=--max-old-space-size=8192 jest --silent",
"test:watch": "NODE_OPTIONS=--max-old-space-size=6144 jest --watchAll",
"test:watch-lite": "jest --watchAll --collectCoverageFrom='' --coverage=true",
"jest:prepare-ci": "bin/cypress-prepare-ci",
"start:ci": "vite preview --port 8080",
"cypress:open": "cypress open",
"cypress:run": "cypress run -c video=false",
Expand Down

0 comments on commit ec595d7

Please sign in to comment.