Skip to content

Commit

Permalink
try something else to make redis tests work
Browse files Browse the repository at this point in the history
  • Loading branch information
lperson committed May 11, 2024
1 parent 2f2f1e0 commit 0ff3511
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/jest-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ jobs:
- run: yarn
- env:
NODE_OPTIONS: "--max-old-space-size=8192"
REDIS_URL: redis://127.0.0.1:6379
CACHE_PREFIX: test
run: yarn test-rediscache
test-sqlite:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "jest --forceExit --runInBand --detectOpenHandles --verbose=false",
"test-watch": "jest --watch --forceExit --runInBand --detectOpenHandles --verbose=false",
"test-cache": "REDIS_FAKE=1 jest --runInBand --forceExit --detectOpenHandles",
"test-rediscache": "REDIS_URL=redis://127.0.0.1:6379 CACHE_PREFIX=test jest --runInBand --forceExit --testPathIgnorePatterns=__test__/components/ __test__/containers __test__/cypress __test__/server/api/campaign/updateQuestionResponses.test.js --detectOpenHandles",
"test-rediscache": "jest --runInBand --forceExit --testPathIgnorePatterns=__test__/components/ __test__/containers __test__/cypress __test__/server/api/campaign/updateQuestionResponses.test.js --detectOpenHandles",
"test-rediscache-contactcache": "REDIS_URL=redis://127.0.0.1:6379 CACHE_PREFIX=test REDIS_CONTACT_CACHE=1 jest --runInBand --forceExit --testPathIgnorePatterns=__test__/components/ __test__/containers __test__/cypress __test__/server/api/campaign/updateQuestionResponses.test.js --detectOpenHandles",
"test-cypress": "NODE_ENV=test DB_TYPE=pg DEFAULT_SERVICE=fakeservice SESSION_SECRET=secret DB_NAME=spoke_test DB_USER=spoke_test DB_PASSWORD=spoke_test cypress open",
"test-sqlite": "jest --config jest.config.sqlite.js --runInBand --forceExit --detectOpenHandles",
Expand Down

0 comments on commit 0ff3511

Please sign in to comment.