Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore(deps-dev): bump @vitest/eslint-plugin to 1.3.20 (supersedes #7701)#8305

Open
jherr wants to merge 2 commits into
mainfrom
chore/bump-vitest-eslint-plugin-1.3.20
Open

chore(deps-dev): bump @vitest/eslint-plugin to 1.3.20 (supersedes #7701)#8305
jherr wants to merge 2 commits into
mainfrom
chore/bump-vitest-eslint-plugin-1.3.20

Conversation

@jherr

@jherr jherr commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Standalone replacement for #7701, applied directly on top of main.

Why not just merge #7701

#7701 (renovate/vitest-eslint-plugin-1.x) was branched against an older tree pinned to vitest 3.2.4 and conflicts with main. Merging it would downgrade vitest. This PR applies only its intent — the @vitest/eslint-plugin 1.3.13 → 1.3.20 bump — with no other version changes.

Changes

  • @vitest/eslint-plugin1.3.20. Its @typescript-eslint ^8.46.1 dependency resolves as a nested subtree, so the top-level typescript-eslint stays at 8.45.0 and vitest stays at 3.2.4.
  • 1.3.20 enables the prefer-called-exactly-once-with rule; the 5 flagged assertions across 3 test files are collapsed into toHaveBeenCalledExactlyOnceWith(...) (eslint --fix + prettier).

No .npmrc / legacy-peer-deps needed — this is purely on vitest 3.

Verification

Local (Node 24): lint, typecheck, format:check pass; 373/373 unit tests pass. Integration/e2e not run locally (need auth token / network / Git LFS).

Closes #7701.

🤖 Generated with Claude Code

Applies the intent of #7701 directly on top of main instead of merging
that stale branch, which would have downgraded vitest to 3.2.4. The
^8.46.1 @typescript-eslint dependency resolves as a nested subtree, so
the top-level typescript-eslint stack stays at 8.45.0 and vitest at
3.2.4. No .npmrc needed.

1.3.20 enables the prefer-called-exactly-once-with rule; the flagged
test assertions are collapsed into toHaveBeenCalledExactlyOnceWith via
eslint --fix + prettier.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@jherr jherr requested a review from a team as a code owner June 15, 2026 19:47
@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 24406741-58bb-45b1-bc5f-d23113e4ec03

📥 Commits

Reviewing files that changed from the base of the PR and between e8d29c0 and 1acac28.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • netlify/blueprints (manual)
✅ Files skipped from review due to trivial changes (1)
  • package.json

📝 Walkthrough

Summary by CodeRabbit

  • Chores

    • Updated development dependency versions (Vitest ESLint plugin).
  • Tests

    • Strengthened unit test assertions to validate calls precisely (including exact call counts and expected arguments).

Walkthrough

The @vitest/eslint-plugin development dependency in package.json is bumped from 1.3.13 to 1.3.20. Three test files are updated to comply with the updated plugin: generate-autocompletion.test.ts, registry.test.ts, and config-github.test.ts each replace separate toHaveBeenCalledOnce() plus toHaveBeenCalledWith(...) assertion pairs with a single toHaveBeenCalledExactlyOnceWith(...) call at four assertion sites total.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • netlify/cli#8304: Both PRs bump @vitest/eslint-plugin to 1.3.20 and update unit tests to use the prefer-called-exactly-once-with pattern (toHaveBeenCalledExactlyOnceWith), so the changes are directly related at the test-assertion level.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and concisely describes the main change: bumping @vitest/eslint-plugin to 1.3.20, which is confirmed by package.json modifications and the PR objectives.
Description check ✅ Passed The description is clearly related to the changeset, explaining why this PR replaces #7701, detailing the dependency bump, and documenting the consequent test assertion refactorings using the new eslint rule.
Linked Issues check ✅ Passed The PR successfully fulfills issue #7701's objective to bump @vitest/eslint-plugin from 1.3.13 to 1.3.20, and additionally applies the new prefer-called-exactly-once-with rule by refactoring 5 assertions across 3 test files.
Out of Scope Changes check ✅ Passed All changes are directly scoped to the dependency upgrade objective: package.json bump, test assertion refactorings for the new eslint rule, and no unrelated modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/bump-vitest-eslint-plugin-1.3.20

Warning

Review ran into problems

🔥 Problems

Linked repositories: Couldn't analyze netlify/blueprints - clone failed: Clone operation failed: Cloning into '/home/jailuser/git'...
warning: templates not found in /usr/share/git-core/templates
remote: Repository not found.
fatal: repository 'https://github.com/netlify/blueprints.git/' not found


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

📊 Benchmark results

Comparing with 77982eb

  • Dependency count: 1,127 (no change)
  • Package size: 379 MB (no change)
  • Number of ts-expect-error directives: 352 (no change)

khendrikse pushed a commit that referenced this pull request Jun 17, 2026
Combines three open dependency-bump PRs into one branch, plus the one
code fix the bumps require.

## Included

| Source PR | Change |
|-----------|--------|
| #8297 | shell-quote 1.8.3 → 1.8.4 (transitive) |
| #8242 | fast-uri 3.1.0 → 3.1.2 (transitive) |
| #8299 | @netlify/build → 35.15.0, @netlify/zip-it-and-ship-it → 14.7.1
|

## Required follow-on fix

- **`netlify-function.ts`**: removed a now-obsolete `@ts-expect-error`.
The @netlify/build bump ships the updated `@netlify/config` type, so the
previously-suppressed error no longer occurs (TS2578).

## Scope notes

- **#7701** (`@vitest/eslint-plugin` 1.3.20) was split out into its own
PR (#8305) and is **no longer part of this branch**.
- **#8288** (vitest 4) is intentionally excluded — it's blocked by an
`@opentelemetry/api` peer conflict that fails install without
`legacy-peer-deps`, and needs a separate decision.

## Verification

Local (Node 24): `format:check`, `lint`, `typecheck` pass; **373/373
unit tests pass**. Integration/e2e not run locally (need auth token /
network / Git LFS).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: jaredm563 <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
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.

2 participants