Skip to content

Fix Jest Tests - #2329

Merged
Mephistic merged 3 commits into
codeforboston:mainfrom
Mephistic:fix-tests
Nov 1, 2026
Merged

Mephistic merged 3 commits into
codeforboston:mainfrom
Mephistic:fix-tests

Conversation

@Mephistic

Copy link
Copy Markdown
Collaborator

Summary

This PR addresses an issue raised in the Conference Committee work where we found that many of our unit tests weren't running in CI. This re-enables those tests, moves tests that require the emulator to run under the Integration Test runner, and fixes broken tests. All jest tests in the main web project now pass.

This also includes a change I'm testing in CI to add a network guard to our jest runner - this would prevent any external network calls from jest. I'm testing this now to see if this interferes with the integration tests in CI - if it does, I'll drop back to a simpler change to ensure the NEXT_PUBLIC_PROJECT_ID_FOR_TEST is overridden so it does not point to the real DEV environment. (This is useful for local development since it lets you quickly point your local frontend at a deployed backend - but we don't want that for unit tests).

…s for most tests. For some tests that require emulators, moving them to run under integration tests where they belong. Still need to resolve skipped tests in useEditTestimony.test.ts and hooks.tests.ts
@vercel

vercel Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
maple-dev Ready Ready Preview Nov 1, 2026 12:05am UTC
1 Skipped Deployment
Project Deployment Actions Updated
maple-prod Ignored Ignored Nov 1, 2026 12:05am UTC

Request Review

@Mephistic
Mephistic merged commit 9dcdad7 into codeforboston:main Nov 1, 2026
8 of 9 checks passed

This branch was successfully deployed

1 active deployment
Preview – maple-dev — 30e9eb1b Deployed Nov 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant