Add Jest E2E tests for trueforge-core - #431
Open
ramantehlan wants to merge 2 commits into
Open
Conversation
ramantehlan
requested review from
bhaveshpatel640,
chiragjn,
debajyoti-truefoundry,
heerambavi1998,
sr07asthana and
thesujai
as code owners
August 25, 2026 11:41
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Jest E2E harness for
@truefoundry/trueforge-corewith a mocked LLM and a first orchestrator loop test.Changes
tests/e2etree andjest.e2e.config.cjs, kept out of unit Jestpnpm test:e2e/pnpm test:trueforge-core:e2e; corepnpm testruns units then E2EAgentThreadOrchestratorHow was this tested?
pnpm --filter @truefoundry/trueforge-core test:e2epnpm --filter @truefoundry/trueforge-core typecheckChecklist
pnpm build,pnpm test,pnpm typecheck,pnpm lint:ci, andpnpm format:checkpass locallypackages/trueforge-sdk,.github/fern/openapi/openapi.json,docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge.env.exampleupdated if configuration or behavior changedNote
Low Risk
Test and CI wiring only; no production runtime or API behavior changes.
Overview
Introduces a separate Jest E2E path for
@truefoundry/trueforge-core:tests/e2e/runs viajest.e2e.config.cjs(longer timeout, single worker) while unit Jest excludes that tree so suites do not double-run.Scripts: core
pnpm testnow runs unit Jest then E2E;pnpm test:e2eand rootpnpm test:trueforge-core:e2erun E2E only.tsconfig.jsonincludes the new config file.First E2E case: mocked streaming text LLM helpers plus a test that drives
AgentThreadOrchestratorthroughsend→execute, asserting model stream events, terminalAGENT_DONE, execution result, and persisted thread context—with no tools or sub-agents.Reviewed by Cursor Bugbot for commit 4fa5242. Bugbot is set up for automated code reviews on this repo. Configure here.