Skip to content
Source
Sign inSign up
TanStack/pacer

chore(packages): add 'tests' to 'test:eslint' and fix lint violations #294

Mergedsukvvon(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/294/headmerged by sukvvon(GitHub profile, opens in a new tab)

🎯 Changes

test:eslint only linted ./src, so the tests directories were never linted.

  • Add ./tests to test:eslint in each package.
  • Add tests to the pacer-lite tsconfig.json include so its tests can be linted with type information.
  • Fix the resulting lint violations in tests (sort-imports, import/order, import/no-duplicates, import/newline-after-import, @typescript-eslint/array-type, @typescript-eslint/no-unnecessary-type-assertion).

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested code changes locally with pnpm run test:pr, or these tests do not apply to this pull request.
  • I fully understand the code in this pull request, including any code generated with AI assistance.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • Chores
    • Expanded lint checks across packages to include test files, helping catch style issues in more of the codebase.
    • Updated package type-checking coverage to include tests.
  • Code Quality
    • Standardized test import organization and minor formatting across framework integrations. No test behavior or end-user functionality changed.
    1. ⚠️ No Changeset found

      Latest commit: f7a92191ef9cb5bce6851b986a9b1fdeb6413b06

      Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

      This PR includes no changesets

      When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

      Click here to learn what changesets are, and how to add one.

      Click here if you're a maintainer who wants to add a changeset to this PR

    2. 🚀 Changeset Version Preview

      No changeset entries found. Merging this PR will not cause a version bump for any packages.

    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Repository: TanStack/pacer/.coderabbit.yaml
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 9abc8a19-7af3-412e-bd06-f52f7b866aa4

      📥 Commits

      Reviewing files that changed from the base of the PR and between c5409ba2d4637a580adf137c011363c6a60bca85 and f7a92191ef9cb5bce6851b986a9b1fdeb6413b06.


      📒 Files selected for processing (94)
      • packages/alpine-pacer/package.json
      • packages/alpine-pacer/tests/createAsyncBatcher.test.ts
      • packages/alpine-pacer/tests/createAsyncDebouncer.test.ts
      • packages/alpine-pacer/tests/createAsyncQueuer.test.ts
      • packages/alpine-pacer/tests/createAsyncRateLimiter.test.ts
      • packages/alpine-pacer/tests/createAsyncThrottler.test.ts
      • packages/alpine-pacer/tests/createBatcher.test.ts
      • packages/alpine-pacer/tests/createDebouncer.test.ts
      • packages/alpine-pacer/tests/createQueuer.test.ts
      • packages/alpine-pacer/tests/createRateLimiter.test.ts
      • packages/alpine-pacer/tests/createThrottler.test.ts
      • packages/alpine-pacer/tests/helpers.test.ts
      • packages/alpine-pacer/tests/plugin.test.ts
      • packages/alpine-pacer/tests/provider.test.ts
      • packages/alpine-pacer/tests/selection.test.ts
      • packages/alpine-pacer/tests/setup.ts
      • packages/angular-pacer-devtools/package.json
      • packages/angular-pacer/package.json
      • packages/ember-pacer/package.json
      • packages/lit-pacer/package.json
      • packages/lit-pacer/tests/createAsyncBatcher.test.ts
      • packages/lit-pacer/tests/createAsyncDebouncer.test.ts
      • packages/lit-pacer/tests/createAsyncQueuer.test.ts
      • packages/lit-pacer/tests/createAsyncRateLimiter.test.ts
      • packages/lit-pacer/tests/createAsyncThrottler.test.ts
      • packages/lit-pacer/tests/createBatcher.test.ts
      • packages/lit-pacer/tests/createDebouncer.test.ts
      • packages/lit-pacer/tests/createQueuer.test.ts
      • packages/lit-pacer/tests/createRateLimiter.test.ts
      • packages/lit-pacer/tests/createThrottler.test.ts
      • packages/lit-pacer/tests/helpers.test.ts
      • packages/lit-pacer/tests/provider.test.ts
      • packages/lit-pacer/tests/selection.test.ts
      • packages/lit-pacer/tests/setup.ts
      • packages/lit-pacer/tests/subscribe.test.ts
      • packages/octane-pacer/package.json
      • packages/octane-pacer/tests/helpers.test.ts
      • packages/octane-pacer/tests/provider.test.ts
      • packages/octane-pacer/tests/selection.test.ts
      • packages/octane-pacer/tests/useAsyncBatcher.test.ts
      • packages/octane-pacer/tests/useAsyncDebouncer.test.ts
      • packages/octane-pacer/tests/useAsyncQueuer.test.ts
      • packages/octane-pacer/tests/useAsyncRateLimiter.test.ts
      • packages/octane-pacer/tests/useAsyncThrottler.test.ts
      • packages/octane-pacer/tests/useBatcher.test.ts
      • packages/octane-pacer/tests/useDebouncer.test.ts
      • packages/octane-pacer/tests/useQueuer.test.ts
      • packages/octane-pacer/tests/useRateLimiter.test.ts
      • packages/octane-pacer/tests/useThrottler.test.ts
      • packages/pacer-devtools/package.json
      • packages/pacer-devtools/tests/plugin.test.ts
      • packages/pacer-lite/package.json
      • packages/pacer-lite/tests/lite-batcher.test.ts
      • packages/pacer-lite/tsconfig.json
      • packages/pacer/package.json
      • packages/preact-pacer-devtools/package.json
      • packages/preact-pacer-devtools/tests/index.test.ts
      • packages/preact-pacer-devtools/tests/test-setup.ts
      • packages/react-pacer-devtools/package.json
      • packages/solid-pacer-devtools/package.json
      • packages/solid-pacer/package.json
      • packages/svelte-pacer-devtools/package.json
      • packages/svelte-pacer/package.json
      • packages/svelte-pacer/tests/createAsyncBatcher.test.ts
      • packages/svelte-pacer/tests/createAsyncDebouncer.test.ts
      • packages/svelte-pacer/tests/createAsyncQueuer.test.ts
      • packages/svelte-pacer/tests/createAsyncRateLimiter.test.ts
      • packages/svelte-pacer/tests/createAsyncThrottler.test.ts
      • packages/svelte-pacer/tests/createBatcher.test.ts
      • packages/svelte-pacer/tests/createDebouncer.test.ts
      • packages/svelte-pacer/tests/createQueuer.test.ts
      • packages/svelte-pacer/tests/createRateLimiter.test.ts
      • packages/svelte-pacer/tests/createThrottler.test.ts
      • packages/svelte-pacer/tests/helpers.test.ts
      • packages/svelte-pacer/tests/provider.test.ts
      • packages/svelte-pacer/tests/selection.test.ts
      • packages/svelte-pacer/tests/setup.ts
      • packages/svelte-pacer/tests/subscribe.test.ts
      • packages/vue-pacer-devtools/package.json
      • packages/vue-pacer-devtools/tests/panel.test.ts
      • packages/vue-pacer/package.json
      • packages/vue-pacer/tests/helpers.test.ts
      • packages/vue-pacer/tests/selection.test.ts
      • packages/vue-pacer/tests/setup.ts
      • packages/vue-pacer/tests/useAsyncBatcher.test.ts
      • packages/vue-pacer/tests/useAsyncDebouncer.test.ts
      • packages/vue-pacer/tests/useAsyncQueuer.test.ts
      • packages/vue-pacer/tests/useAsyncRateLimiter.test.ts
      • packages/vue-pacer/tests/useAsyncThrottler.test.ts
      • packages/vue-pacer/tests/useBatcher.test.ts
      • packages/vue-pacer/tests/useDebouncer.test.ts
      • packages/vue-pacer/tests/useQueuer.test.ts
      • packages/vue-pacer/tests/useRateLimiter.test.ts
      • packages/vue-pacer/tests/useThrottler.test.ts

      Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.



      📝 Walkthrough

      Walkthrough

      Package lint scripts now include test directories in ESLint targets. Test files across several packages also receive import-order and formatting changes. The pacer-lite TypeScript configuration includes tests, and several callback annotations use Array<any>.

      Changes

      Package test linting

      Layer / File(s)Summary
      Extend ESLint targets
      packages/*/package.json
      Package test:eslint scripts add test directories alongside source directories.
      Update test imports and formatting
      packages/*-pacer/tests/*, packages/*-pacer-devtools/tests/*
      Test imports are reordered or consolidated. Some files add blank lines or remove a type assertion. Test behavior remains unchanged.
      Include pacer-lite tests in TypeScript scope
      packages/pacer-lite/tsconfig.json, packages/pacer-lite/tests/lite-batcher.test.ts
      The TypeScript include list adds tests. Five callback parameter annotations change from any[] to Array<any>; callback conditions remain unchanged.

      Priority: ⬇️ Low

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Other

      Suggested reviewers: kevinvandy


      Merge Risk: ⚪ Minimal · up to f7a92

      This development-only change expands linting and typechecking to tests. No user-facing behavior change or supported workflow failure is established, so no concrete merge blocker remains.

      Pre-merge checks | Passed 4 | Inconclusive 1

      ❌ Failed checks (1 inconclusive)

      Check nameStatusExplanationResolution
      Docstring CoverageInconclusiveDocstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 50 files. (44 skipped: …Write docstrings for the functions missing them to satisfy the coverage threshold.
      ✅ Passed checks (4 passed)
      Check nameStatusExplanation
      Description CheckPassedCheck skipped - CodeRabbit’s high-level summary is enabled.
      Title checkPassedThe title clearly and concisely summarizes the main changes: adding tests to each package's test:eslint checks and fixing the resulting lint violations.
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.

      Full details: Docstring Coverage

      Explanation

      Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 50 files. (44 skipped: 18 unsupported, 26 over the file limit.)


      ✨ Finishing Touches 💡 1
      📝 Generate docstrings 💡
      • Commit to this branch
      • Create a new PR

      🧪 Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR

      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      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.
    4. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit f7a92191ef9cb5bce6851b986a9b1fdeb6413b06

      CommandStatusDurationResult
      nx run-many --targets=build --exclude=examples/**✅ Succeeded21sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-10-12 12:26:32 UTC

    5. More templates

      @tanstack/alpine-pacer

      npm i https://pkg.pr.new/@tanstack/alpine-pacer@294

      @tanstack/angular-pacer

      npm i https://pkg.pr.new/@tanstack/angular-pacer@294

      @tanstack/angular-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/angular-pacer-devtools@294

      @tanstack/ember-pacer

      npm i https://pkg.pr.new/@tanstack/ember-pacer@294

      @tanstack/lit-pacer

      npm i https://pkg.pr.new/@tanstack/lit-pacer@294

      @tanstack/octane-pacer

      npm i https://pkg.pr.new/@tanstack/octane-pacer@294

      @tanstack/pacer

      npm i https://pkg.pr.new/@tanstack/pacer@294

      @tanstack/pacer-devtools

      npm i https://pkg.pr.new/@tanstack/pacer-devtools@294

      @tanstack/pacer-lite

      npm i https://pkg.pr.new/@tanstack/pacer-lite@294

      @tanstack/preact-pacer

      npm i https://pkg.pr.new/@tanstack/preact-pacer@294

      @tanstack/preact-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/preact-pacer-devtools@294

      @tanstack/react-pacer

      npm i https://pkg.pr.new/@tanstack/react-pacer@294

      @tanstack/react-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/react-pacer-devtools@294

      @tanstack/solid-pacer

      npm i https://pkg.pr.new/@tanstack/solid-pacer@294

      @tanstack/solid-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/solid-pacer-devtools@294

      @tanstack/svelte-pacer

      npm i https://pkg.pr.new/@tanstack/svelte-pacer@294

      @tanstack/svelte-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/svelte-pacer-devtools@294

      @tanstack/vue-pacer

      npm i https://pkg.pr.new/@tanstack/vue-pacer@294

      @tanstack/vue-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/vue-pacer-devtools@294

      commit: f7a9219

Sign in to join this conversation.