Skip to content

chore(deps-dev): bump @types/jest from 27.4.1 to 30.0.0 - #64

Merged
shairevivo merged 2 commits into
mainfrom
dependabot/npm_and_yarn/types/jest-30.0.0
Nov 10, 2026
Merged

shairevivo merged 2 commits into
mainfrom
dependabot/npm_and_yarn/types/jest-30.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Bumps @types/jest from 27.4.1 to 30.0.0.

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 10, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:03 AM UTC · Completed 10:13 AM UTC

Commit: 5e5fb08 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.84

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 10, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Bot-authored @types/jest dependency change with small diff (3 files, 49 lines) but two dependency files and one new protected path (.github/dependabot.yml with a Dependabot ignore rule); Tier 2 shows high fix/revert churn on package-lock.json and package.json, keeping the score at moderate, unchanged from the prior assessment despite the added protected path.

Previous run

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Bot-authored @types/jest dependency bump touching only package.json and package-lock.json with no protected paths, security-sensitive files, or CI changes; Tier 1 (1.75) is elevated only by the dual dependency-file change, and Tier 2 (2.57) reflects high recent churn from an ongoing automated dependency-update campaign; composite 2.06 rounds to 2 (moderate), consistent with the prior assessment.

Previous run (2)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Bot-authored @types/jest dependency bump touching only package.json and package-lock.json with no protected paths, security-sensitive files, or CI changes; Tier 1 (1.75) is raised only by the dual dependency-file change and Tier 2 (2.43) by high recent churn from an ongoing automated dependency-update campaign, yielding a composite of 2 (moderate).

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Review

Findings

High

  • [protected-path] .github/dependabot.yml:44 — This PR modifies a protected governance/infrastructure path: .github/dependabot.yml. The fix commit adds a Dependabot ignore rule for @types/jest versions: [">=28"]. The PR has no linked issue (the commit's "Addresses chore(deps-dev): bump @types/jest from 27.4.1 to 30.0.0 #64" refers to this PR itself), and the PR description is the stock Dependabot body for a 27.4.1 → 30.0.0 bump; it does not explain or justify changing the Dependabot configuration. The rationale appears only in the commit message and the YAML comment. Protected-path changes always require human approval.
    Remediation: A maintainer should review and explicitly approve the new Dependabot ignore rule. Alternatively, link an issue or update the PR description to justify the configuration change, or move the ignore rule into a separate PR so this one stays a pure dependency change.

Low

  • [misleading-label] .github/dependabot.yml:48 — The PR title still says "bump @types/jest from 27.4.1 to 30.0.0". The net change now does something else: it keeps @types/jest on 27.x (^27.4.1 → ^27.5.2 in package.json:73, lockfile resolves 27.5.2) and adds an ignore rule blocking majors ≥28. A squash-merge commit or changelog entry built from the title would misdescribe the change.
    Remediation: Retitle the PR to match the final state, e.g. "chore(deps-dev): bump @types/jest to 27.5.2 and ignore majors ≥28 (CRA/Jest 27 constraint)".

Earlier findings

  • package.json:73 — api-contract — resolved by change: @types/jest is now ^27.5.2. The lockfile resolves it to 27.5.2, with jest-matcher-utils/pretty-format ^27.0.0, matching the Jest 27.5.1 runtime from react-scripts 5 and TypeScript 4.9.5. The nested Jest 30 type packages are removed from package-lock.json.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImFwaS1jb250cmFjdCIsImZpbGUiOiJwYWNrYWdlLmpzb24iLCJpZCI6ImZfY2FlMzYzYjFiZmEwMmI2NiIsImxpbmUiOjczLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfY2FlMzYzYjFiZmEwMmI2NiIsInN0YXR1cyI6Im9wZW4ifV19 -->

Review

Findings

Medium

  • [api-contract] package.json:73 — @types/jest ^30.0.0 does not match the Jest that actually runs. react-scripts 5 runs Jest 27: the PR-head lockfile resolves node_modules/jest and node_modules/expect to 27.5.1. @types/jest 30.0.0 brings its own nested Jest 30 packages (node_modules/@types/jest/node_modules/expect, @jest/types, jest-mock, pretty-format, ...), so the matcher and mock types used in tests describe a different major than the runtime. Two problems follow:

    1. Types and runtime diverge. Jest 30 removed matcher aliases such as toBeCalledTimes, and @types/jest 30 removed them too. src/commons/Checkbox/Checkbox.test.tsx:32 still calls expect(mockHandleOnChange).toBeCalledTimes(2). Jest 27 still runs it, so npm test keeps passing. But tsconfig.json includes all of src, so tsc --noEmit and editor diagnostics would flag the call as an error. That undoes the earlier work to keep test files tsc-clean.
    2. TypeScript version mismatch. The repo deliberately stays on typescript ^4.9.5. .github/dependabot.yml holds TypeScript below 5 and pins @types/node to its ts4.9 tag. Jest 30 and @types/jest 30 target TypeScript 5.x. This is the same kind of mismatch that was fixed for @types/node.

    Limits: node_modules is not present, so this review did not run a local compile. skipLibCheck: true hides semantic errors in .d.ts files but not syntax errors. No workflow in .github/workflows runs tsc or the test suite, so CI would not catch this.
    Remediation: Go back to the @types/jest major that matches the runtime. Set "@types/jest": "^27.5.2" and regenerate the lockfile. Then add a Dependabot ignore for @types/jest versions >=28 while the repo stays on react-scripts 5 / Jest 27 / TypeScript 4.x, the same way typescript and @types/node are already handled. If you keep the bump on purpose, at least change Checkbox.test.tsx:32 to toHaveBeenCalledTimes(2), which works with both the Jest 27 runtime and @types/jest 30.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (2)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImFwaS1jb250cmFjdCIsImZpbGUiOiJwYWNrYWdlLmpzb24iLCJpZCI6ImZfY2FlMzYzYjFiZmEwMmI2NiIsImxpbmUiOjczLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9XX0= -->

Review

Findings

Medium

  • [api-contract] package.json:73 — @types/jest jumps a major version (27 → 30), but the repo stays on TypeScript 4.9.5 (package.json:12). It can't move to TypeScript 5: react-scripts 5.0.1 limits its typescript peer to ^3.2.1 || ^4, and .github/dependabot.yml ignores typescript >=5. @types/jest@30.0.0 most likely requires TypeScript 5.x, and the Jest 30 packages it pulls in for types (expect@30.5.2, pretty-format@30.5.1, jest-mock@30.5.2, @jest/types@30.5.1, @sinclair/typebox@0.34.52) likely need TypeScript 5.4. This is from memory and not confirmed: the npm registry was unreachable during review. skipLibCheck: true hides type errors inside those .d.ts files. It does not hide parse errors from syntax only TypeScript 5 understands, or broken types that surface in src test files. tsconfig.json has no types restriction, so editors and any tsc --noEmit load all of these declarations. CRA's fork-ts-checker skips node_modules and *.test.* / setupTests.*, and CI runs neither tsc nor the tests, so a break would go unnoticed. Separately, the types now describe Jest 30 while tests still run on Jest 27.5.1 from react-scripts. Current tests use only jest.fn, jest.spyOn and jest.restoreAllMocks, so nothing breaks today. In future tests, though, newer APIs such as jest.replaceProperty and jest.getSeed would type-check and then fail at runtime. Jest 27 forms such as jest.useFakeTimers('legacy'|'modern') would be flagged as type errors even though they work.
    Remediation: Before merging, run npm ci && npx tsc --noEmit -p . and CI=true npm test on the PR head with TypeScript 4.9.5 and confirm both pass. If tsc reports parse or resolution errors in @types/jest, expect, jest-mock or @sinclair/typebox, stay on @types/jest ^27 to match the Jest 27 runtime that react-scripts installs. Then add a Dependabot ignore for @types/jest versions >=28 next to the existing typescript/react-scripts rules.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 27.4.1 to 30.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  dependency-version: 30.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/types/jest-30.0.0 branch from 5e5fb08 to 3f572d2 Compare November 10, 2026 12:12
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:14 PM UTC · Completed 12:22 PM UTC

Commit: 3f572d2 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.54

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-coder

fullsend-ai-coder Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Finished Fix · ✅ Success · Started 12:23 PM UTC · Completed 12:28 PM UTC

Commit: 3f572d2 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $0.80

react-scripts 5 runs Jest 27.5.1, but @types/jest 30 typed a different
major (removed matcher aliases still used in tests, and needs
TypeScript 5 while the repo stays on 4.9). Pin @types/jest to ^27.5.2,
regenerate the lockfile (drops the nested Jest 30 type packages), and
add a Dependabot ignore for @types/jest >=28 alongside the existing
typescript and @types/node rules.

Verified locally: CI=true npm test (19 suites, 40 tests pass),
tsc --noEmit with TypeScript 4.9.5, and eslint ./src all pass.

Addresses #64

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

🔧 Fix agent — iteration 1 (bot-triggered)

Addressed the single review finding. Reverted @types/jest to ^27.5.2 to match the Jest 27 runtime from react-scripts 5 and the TypeScript 4.9 pin, regenerated the lockfile, and added a Dependabot ignore for @types/jest >=28. Verified locally after npm ci: CI=true npm test passes (19 suites, 40 tests), and tsc --noEmit with TypeScript 4.9.5 and eslint ./src both pass. Note: .github/dependabot.yml is a protected path, so a human reviewer must approve before merge.

Fixed (3):

  1. Merge conflict check: the forge reports this PR as MERGEABLE, so no conflict reconciliation was needed: Checked mergeability. GitHub reported mergeable=MERGEABLE against base main, so no merge or rebase was done.
  2. [api-contract] package.json:73: @types/jest ^30.0.0 does not match the Jest 27 runtime from react-scripts 5 or the TypeScript 4.9 pin (package.json): Changed the @types/jest range to ^27.5.2 and regenerated package-lock.json with npm install --package-lock-only. The lockfile now resolves @types/jest to 27.5.2, and the nested Jest 30 type packages (expect, @jest/types, jest-mock, pretty-format, etc.) are gone. Checkbox.test.tsx:32 needs no change, because toBeCalledTimes is still typed in @types/jest 27.
  3. [api-contract] Add a Dependabot ignore for @types/jest >=28 while staying on react-scripts 5 / Jest 27 / TypeScript 4.x (.github/dependabot.yml): Added an ignore rule for @types/jest versions >=28, with a comment explaining why, next to the existing typescript and @types/node rules. The review finding explicitly prescribed this content change, which authorizes editing this protected path.

Tests: passed

CI inspections (3):

  1. security / Production dependency audit (passing, success): Passed on the PR head.
  2. security / Secret scan (gitleaks) (passing, success): Passed on the PR head.
  3. merge agent PRs on clean review / merge-on-clean-review (passing, skipped): Skipped because the review requested changes; not a failure.

Conflict update: skipped; strategy none; forge MERGEABLE; target main

Decision points
  • Which of the reviewer's two remediations to apply (alternatives: Revert to @types/jest ^27.5.2, regenerate the lockfile, and add a Dependabot ignore, Keep @types/jest 30 and only change toBeCalledTimes to toHaveBeenCalledTimes; rationale: The reviewer's primary remediation makes the types match the Jest 27 runtime that actually runs the tests. Keeping 30.x would still leave types that describe a different Jest major and need TypeScript 5 (its declared typeScriptVersion is 5.1), while the repo stays on 4.9.)
  • Wording of the Dependabot ignore comment (alternatives: Say that all @types/jest majors >=28 need TypeScript 5, Give runtime mismatch as the reason, and note that only 30.x needs TypeScript 5; rationale: The npm registry shows @types/jest 28.1.8 declares TypeScript 4.3 and 29.5.14 declares 4.8. Only 30.x needs 5.1. So the comment gives the Jest 27 runtime mismatch as the main reason for the >=28 ignore.)

Next steps:

  • /fs-review — request a re-review of the changes
  • /fs-fix <your instruction> — run another fix pass with specific guidance
  • Push commits directly — review re-runs automatically on push
    Updated by fullsend fix agent

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:29 PM UTC · Completed 12:38 PM UTC

Commit: fe6a6db · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.10

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review comment for full details.

Comment thread .github/dependabot.yml Resolved
Comment thread .github/dependabot.yml Resolved
@fullsend-ai-coder

fullsend-ai-coder Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Finished Fix · ✅ Success · Started 12:39 PM UTC · Completed 12:42 PM UTC

Commit: fe6a6db · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $0.45

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

🔧 Fix agent — iteration 2 (bot-triggered)

No code changes in this iteration. Neither remaining finding can be fixed with a code change. (1) The protected-path finding on .github/dependabot.yml needs a maintainer to review and approve the @types/jest >=28 ignore rule. (2) The misleading-title finding needs a maintainer to retitle the PR, e.g. to 'chore(deps-dev): bump @types/jest to 27.5.2 and ignore majors >=28'. The earlier package.json finding was already resolved by the previous fix commit. All project CI checks (security workflow, Dependabot config validation) pass. Tests were not run because no files changed and dependencies are not installed in the sandbox.

Disagreed (2):

  1. [protected-path] .github/dependabot.yml:44 — PR modifies a protected governance path (new Dependabot ignore rule for @types/jest >=28) without a linked issue or PR-description justification: This is the mandatory protected-path merge-gate finding. It asks for a maintainer to approve, not for an edit to the file, so the fix agent makes no change. The ignore rule was added in the previous fix iteration because the earlier review asked for it: react-scripts 5 runs Jest 27 and the repo stays on TypeScript 4.9, and @types/jest 30 targets Jest 30 and TypeScript 5. It follows the same pattern as the existing typescript and @types/node rules. A maintainer needs to review and approve the rule. If they prefer, they can split it into a separate PR or add the rationale to the PR description. The fix agent cannot edit PR descriptions.
  2. [misleading-label] PR title still says 'bump @types/jest from 27.4.1 to 30.0.0', but the net change keeps @types/jest on 27.5.2 and adds an ignore rule for majors >=28: The finding is correct, but the fix is a PR title change, not a code change. The reviewer marked it non-actionable, and the fix agent is not permitted to edit PR metadata. A maintainer should retitle the PR before merging, e.g. 'chore(deps-dev): bump @types/jest to 27.5.2 and ignore majors >=28 (CRA/Jest 27 constraint)', so a squash-merge commit or changelog entry describes the change accurately.

Tests: failed

CI inspections (4):

  1. security / Secret scan (gitleaks) (passing, success): Secret scan passed on the PR head.
  2. security / Production dependency audit (passing, success): Dependency audit passed on the PR head.
  3. .github/dependabot.yml (passing, success): Dependabot configuration validation passed with the new @types/jest ignore rule.
  4. merge agent PRs on clean review / merge-on-clean-review (passing, skipped): Skipped because the review requested changes; this is expected and not a failure.

Conflict update: skipped; strategy none; forge MERGEABLE; target main

Decision points
  • Whether to change .github/dependabot.yml or the branch in response to the protected-path finding (alternatives: Revert the Dependabot ignore rule so the PR no longer touches a protected path, Leave the rule and defer to human approval; rationale: The protected-path category only asks for human approval and never prescribes a content edit. The earlier review explicitly asked for this rule, and removing it would let Dependabot reopen @types/jest 28+ bumps that don't match the Jest 27 runtime.)

Next steps:

  • /fs-review — request a re-review of the changes
  • /fs-fix <your instruction> — run another fix pass with specific guidance
  • Push commits directly — review re-runs automatically on push
    Updated by fullsend fix agent

@shairevivo
shairevivo merged commit c7fe4a1 into main Nov 10, 2026
35 checks passed
@shairevivo
shairevivo deleted the dependabot/npm_and_yarn/types/jest-30.0.0 branch November 10, 2026 13:13
@fullsend-ai-retro

fullsend-ai-retro Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 1:14 PM UTC · Completed 1:27 PM UTC

Commit: fe6a6db · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $4.91

@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #64 (Dependabot @types/jest 27.4.1 → 30.0.0)

Outcome: The agents caught a real problem. @types/jest 30 targets Jest 30 and TypeScript 5, but the repo runs Jest 27 (via react-scripts 5) on TypeScript 4.9. Fix iteration 1 (run) went back to ^27.5.2, regenerated the lockfile and added a Dependabot ignore rule for majors >=28. It confirmed that npm test, tsc and eslint pass. The maintainer approved the protected-path change and merged. The 5 agent runs cost about $10.73. The agents (fullsend-ai/agents@v0.54.0) did their job, but the run was slower and more expensive than it needed to be.

New proposal (1): Fix iteration 2 reported Tests: failed even though it ran no tests, because there were no file changes. The tests_passed field is a required true/false value, so it cannot record "not run".

Evidence for existing issues (not re-filed):

Not proposed:

Autonomy note: The human's only action was to approve the protected-path change, which review had correctly routed to them. Review's correctness finding was accurate, and the fix agent confirmed it.

Proposals filed

shairevivo pushed a commit that referenced this pull request Nov 10, 2026
* docs(#71): list @types/jest ignore rule, fix npm test claim

AGENTS.md drifted from .github/dependabot.yml: PR #64 added a
Dependabot ignore rule for @types/jest >=28 while PR #70 was open,
so the merged AGENTS.md never mentioned it.

- Pinned versions: note that Dependabot ignores @types/jest >=28,
  and document the react-scripts major-update ignore rule so every
  npm ignore entry is described.
- Exit condition: add the @types/jest rule, relaxed only when
  react-scripts/Jest 27 is replaced, not when only TypeScript is
  raised.
- NoInfer paragraph: only build and start type-check (via
  fork-ts-checker) and fail with TS2304; CI=true npm test uses
  babel-jest, which strips types, so it still passes. npm run build
  is the step that catches it.

Docs-only change. Verified with prettier 3.9.10 --check.

Closes #71

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(#71): address review feedback on PR #72

Narrow the NoInfer guidance in AGENTS.md: `npm run build` catches a
NoInfer only in application code. CRA 5.0.1 configures fork-ts-checker
to skip test files (*.test.*, *.spec.*, __tests__/, setupTests.*,
setupProxy.*), so no validation command catches it there. Tell agents
not to use NoInfer in test files either.

The protected-path finding needs no change (human approval of the
AGENTS.md edit is a merge gate, not a content change).

Verification: npx prettier@3.9.10 --check AGENTS.md passes. npm test and
eslint were not run: documentation-only change and node_modules is not
installed in the sandbox.

Addresses #72

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: fullsend-code <278716306+fullsend-ai-coder[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file fullsend-fix javascript Pull requests that update javascript code risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant