chore(deps): Bump the npm-minor-patch group with 24 updates#264
chore(deps): Bump the npm-minor-patch group with 24 updates#264dependabot[bot] wants to merge 1 commit into
Conversation
Bumps the npm-minor-patch group with 24 updates: | Package | From | To | | --- | --- | --- | | [@radix-ui/react-avatar](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/avatar) | `1.1.12` | `1.2.0` | | [@radix-ui/react-checkbox](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/checkbox) | `1.3.4` | `1.3.5` | | [@radix-ui/react-collapsible](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/collapsible) | `1.1.13` | `1.1.14` | | [@radix-ui/react-dialog](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/dialog) | `1.1.16` | `1.1.17` | | [@radix-ui/react-dropdown-menu](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/dropdown-menu) | `2.1.17` | `2.1.18` | | [@radix-ui/react-label](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/label) | `2.1.9` | `2.1.10` | | [@radix-ui/react-progress](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/progress) | `1.1.9` | `1.1.10` | | [@radix-ui/react-select](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/select) | `2.3.0` | `2.3.1` | | [@radix-ui/react-slot](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/slot) | `1.2.5` | `1.3.0` | | [@radix-ui/react-switch](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/switch) | `1.3.0` | `1.3.1` | | [@radix-ui/react-tabs](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/tabs) | `1.1.14` | `1.1.15` | | [@radix-ui/react-toast](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/toast) | `1.2.16` | `1.2.17` | | [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react) | `1.18.0` | `1.22.0` | | [radix-ui](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/radix-ui) | `1.5.0` | `1.6.0` | | [react-hook-form](https://github.com/react-hook-form/react-hook-form) | `7.79.0` | `7.80.0` | | [recharts](https://github.com/recharts/recharts) | `3.8.1` | `3.9.0` | | [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) | `4.3.1` | `4.3.2` | | [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) | `4.1.8` | `4.1.9` | | [lint-staged](https://github.com/lint-staged/lint-staged) | `17.0.7` | `17.0.8` | | [oxfmt](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxfmt) | `0.54.0` | `0.57.0` | | [oxlint](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxlint) | `1.69.0` | `1.72.0` | | [postcss](https://github.com/postcss/postcss) | `8.5.15` | `8.5.16` | | [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) | `4.3.1` | `4.3.2` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `4.1.8` | `4.1.9` | Updates `@radix-ui/react-avatar` from 1.1.12 to 1.2.0 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/avatar/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/avatar) Updates `@radix-ui/react-checkbox` from 1.3.4 to 1.3.5 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/checkbox/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/checkbox) Updates `@radix-ui/react-collapsible` from 1.1.13 to 1.1.14 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/collapsible/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/collapsible) Updates `@radix-ui/react-dialog` from 1.1.16 to 1.1.17 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/dialog/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/dialog) Updates `@radix-ui/react-dropdown-menu` from 2.1.17 to 2.1.18 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/dropdown-menu/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/dropdown-menu) Updates `@radix-ui/react-label` from 2.1.9 to 2.1.10 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/label/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/label) Updates `@radix-ui/react-progress` from 1.1.9 to 1.1.10 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/progress/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/progress) Updates `@radix-ui/react-select` from 2.3.0 to 2.3.1 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/select/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/select) Updates `@radix-ui/react-slot` from 1.2.5 to 1.3.0 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/slot/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/slot) Updates `@radix-ui/react-switch` from 1.3.0 to 1.3.1 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/switch/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/switch) Updates `@radix-ui/react-tabs` from 1.1.14 to 1.1.15 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/tabs/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/tabs) Updates `@radix-ui/react-toast` from 1.2.16 to 1.2.17 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/toast/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/toast) Updates `lucide-react` from 1.18.0 to 1.22.0 - [Release notes](https://github.com/lucide-icons/lucide/releases) - [Commits](https://github.com/lucide-icons/lucide/commits/1.22.0/packages/lucide-react) Updates `radix-ui` from 1.5.0 to 1.6.0 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/radix-ui/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/radix-ui) Updates `react-hook-form` from 7.79.0 to 7.80.0 - [Release notes](https://github.com/react-hook-form/react-hook-form/releases) - [Changelog](https://github.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md) - [Commits](react-hook-form/react-hook-form@v7.79.0...v7.80.0) Updates `recharts` from 3.8.1 to 3.9.0 - [Release notes](https://github.com/recharts/recharts/releases) - [Changelog](https://github.com/recharts/recharts/blob/main/CHANGELOG.md) - [Commits](recharts/recharts@v3.8.1...v3.9.0) Updates `@tailwindcss/postcss` from 4.3.1 to 4.3.2 - [Release notes](https://github.com/tailwindlabs/tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.3.2/packages/@tailwindcss-postcss) Updates `@vitest/coverage-v8` from 4.1.8 to 4.1.9 - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md) - [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.9/packages/coverage-v8) Updates `lint-staged` from 17.0.7 to 17.0.8 - [Release notes](https://github.com/lint-staged/lint-staged/releases) - [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md) - [Commits](lint-staged/lint-staged@v17.0.7...v17.0.8) Updates `oxfmt` from 0.54.0 to 0.57.0 - [Release notes](https://github.com/oxc-project/oxc/releases) - [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxfmt/CHANGELOG.md) - [Commits](https://github.com/oxc-project/oxc/commits/oxfmt_v0.57.0/npm/oxfmt) Updates `oxlint` from 1.69.0 to 1.72.0 - [Release notes](https://github.com/oxc-project/oxc/releases) - [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxlint/CHANGELOG.md) - [Commits](https://github.com/oxc-project/oxc/commits/oxlint_v1.72.0/npm/oxlint) Updates `postcss` from 8.5.15 to 8.5.16 - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](postcss/postcss@8.5.15...8.5.16) Updates `tailwindcss` from 4.3.1 to 4.3.2 - [Release notes](https://github.com/tailwindlabs/tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.3.2/packages/tailwindcss) Updates `vitest` from 4.1.8 to 4.1.9 - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md) - [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.9/packages/vitest) --- updated-dependencies: - dependency-name: "@radix-ui/react-avatar" dependency-version: 1.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: npm-minor-patch - dependency-name: "@radix-ui/react-checkbox" dependency-version: 1.3.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: "@radix-ui/react-collapsible" dependency-version: 1.1.14 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: "@radix-ui/react-dialog" dependency-version: 1.1.17 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: "@radix-ui/react-dropdown-menu" dependency-version: 2.1.18 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: "@radix-ui/react-label" dependency-version: 2.1.10 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: "@radix-ui/react-progress" dependency-version: 1.1.10 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: "@radix-ui/react-select" dependency-version: 2.3.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: "@radix-ui/react-slot" dependency-version: 1.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: npm-minor-patch - dependency-name: "@radix-ui/react-switch" dependency-version: 1.3.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: "@radix-ui/react-tabs" dependency-version: 1.1.15 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: "@radix-ui/react-toast" dependency-version: 1.2.17 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: lucide-react dependency-version: 1.22.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: npm-minor-patch - dependency-name: radix-ui dependency-version: 1.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: npm-minor-patch - dependency-name: react-hook-form dependency-version: 7.80.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: npm-minor-patch - dependency-name: recharts dependency-version: 3.9.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: npm-minor-patch - dependency-name: "@tailwindcss/postcss" dependency-version: 4.3.2 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: "@vitest/coverage-v8" dependency-version: 4.1.9 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: lint-staged dependency-version: 17.0.8 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: oxfmt dependency-version: 0.57.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-minor-patch - dependency-name: oxlint dependency-version: 1.72.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-minor-patch - dependency-name: postcss dependency-version: 8.5.16 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: tailwindcss dependency-version: 4.3.2 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-minor-patch - dependency-name: vitest dependency-version: 4.1.9 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-minor-patch ... Signed-off-by: dependabot[bot] <support@github.com>
📝 WalkthroughWalkthrough
ChangesDependency Version Bumps
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@package.json`:
- Line 54: The Recharts test mock is missing a symbol imported by
dashboard-insights, causing module initialization to break. Update the
vi.mock("recharts") setup used by test/dashboard-insights.test.tsx so it either
includes Sector explicitly or spreads the real Recharts module, keeping it
aligned with components/dashboard/dashboard-insights.tsx and all imported
symbols.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: a6935abb-c413-4af4-b84d-5b7a4da373d4
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (1)
package.json
📜 Review details
⚠️ CI failures not shown inline (2)
GitHub Actions: CI / quality: chore(deps): Bump the npm-minor-patch group with 24 updates
Conclusion: failure
##[group]Run pnpm install --frozen-lockfile
�[36;1mpnpm install --frozen-lockfile�[0m
shell: /usr/bin/bash -e {0}
env:
PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
##[endgroup]
? Verifying lockfile against supply-chain policies (433 entries)...
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +326
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 326, reused 0, downloaded 38, added 0
Progress: resolved 326, reused 0, downloaded 122, added 8
Progress: resolved 326, reused 0, downloaded 200, added 12
Progress: resolved 326, reused 0, downloaded 323, added 24
✗ Lockfile failed supply-chain policy check (433 entries in 4.8s)
Progress: resolved 326, reused 0, downloaded 326, added 326, done
[ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION] 56 lockfile entries failed verification:
`@oxfmt/binding-android-arm-eabi`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-android-arm64`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-darwin-arm64`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-darwin-x64`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-freebsd-x64`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-linux-arm-gnueabihf`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-linux-arm-musleabihf`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-linux-arm64-gnu`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-linux-arm64-musl`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-linux-ppc64-gnu`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-linux-riscv64-gnu`@0.57.0 was published at , within the minimumReleaseAge...
GitHub Actions: CI / 0_quality.txt: chore(deps): Bump the npm-minor-patch group with 24 updates
Conclusion: failure
##[group]Run pnpm install --frozen-lockfile
�[36;1mpnpm install --frozen-lockfile�[0m
shell: /usr/bin/bash -e {0}
env:
PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
##[endgroup]
? Verifying lockfile against supply-chain policies (433 entries)...
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +326
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 326, reused 0, downloaded 38, added 0
Progress: resolved 326, reused 0, downloaded 122, added 8
Progress: resolved 326, reused 0, downloaded 200, added 12
Progress: resolved 326, reused 0, downloaded 323, added 24
✗ Lockfile failed supply-chain policy check (433 entries in 4.8s)
Progress: resolved 326, reused 0, downloaded 326, added 326, done
[ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION] 56 lockfile entries failed verification:
`@oxfmt/binding-android-arm-eabi`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-android-arm64`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-darwin-arm64`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-darwin-x64`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-freebsd-x64`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-linux-arm-gnueabihf`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-linux-arm-musleabihf`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-linux-arm64-gnu`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-linux-arm64-musl`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-linux-ppc64-gnu`@0.57.0 was published at , within the minimumReleaseAge cutoff ()
`@oxfmt/binding-linux-riscv64-gnu`@0.57.0 was published at , within the minimumReleaseAge...
🔇 Additional comments (1)
package.json (1)
32-53: LGTM!Also applies to: 55-76
| "react-hook-form": "^7.78.0", | ||
| "recharts": "3.8.1", | ||
| "react-hook-form": "^7.80.0", | ||
| "recharts": "3.9.0", |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
python - <<'PY'
from pathlib import Path
import re
component = Path("components/dashboard/dashboard-insights.tsx").read_text()
test = Path("test/dashboard-insights.test.tsx").read_text()
component_import = re.search(r'import\s*\{([^}]*)\}\s*from\s*"recharts"', component, re.S)
imports = {
part.strip().split(" as ")[0]
for part in component_import.group(1).split(",")
if part.strip()
}
mock_block = re.search(r'vi\.mock\("recharts",\s*\(\)\s*=>\s*\(\{(.*?)\}\)\)', test, re.S)
mocked = set()
for line in mock_block.group(1).splitlines():
m = re.match(r'\s*([A-Za-z0-9_]+)\s*:', line)
if m:
mocked.add(m.group(1))
print("Imported from recharts:", sorted(imports))
print("Mocked in test:", sorted(mocked))
print("Missing mock exports:", sorted(imports - mocked))
PYRepository: finallyjay/steam-backlog-hunter
Length of output: 450
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '\n== component outline ==\n'
ast-grep outline components/dashboard/dashboard-insights.tsx --view expanded || true
printf '\n== test outline ==\n'
ast-grep outline test/dashboard-insights.test.tsx --view expanded || true
printf '\n== component excerpt ==\n'
sed -n '1,220p' components/dashboard/dashboard-insights.tsx | cat -n
printf '\n== test excerpt ==\n'
sed -n '1,220p' test/dashboard-insights.test.tsx | cat -nRepository: finallyjay/steam-backlog-hunter
Length of output: 18407
🌐 Web query:
Vitest vi.mock factory missing named export import behavior undefined or runtime error
💡 Result:
When using vi.mock in Vitest, runtime errors or "undefined" behavior regarding named exports typically stem from how ES modules (ESM) handle exports versus the CommonJS behavior users may be accustomed to from Jest [1][2]. Key causes and solutions include: 1. Missing or Mismatched Exports: If Vitest throws an error stating that a specific export is not defined, it means the object returned by your vi.mock factory does not include the property expected by the code being tested [3]. Ensure your factory returns an object containing all required named exports [4][1]. If you only want to mock some exports while keeping others, use vi.importActual to spread the original module's exports into your mock [3][5]: vi.mock('./path/to/module', async (importOriginal) => { const actual = await importOriginal; return {...actual, namedExport: vi.fn, // Override specific export }; }); 2. Handling Default Exports: Unlike CommonJS, ESM treats the default export as a property named default on the module object [1][2]. If you are mocking a module that relies on a default export, you must explicitly include a default key in the object returned by your factory [1][6]: vi.mock('./path/to/module', => ({ default: { myDefaultKey: vi.fn }, namedExport: vi.fn, })); 3. Premature Access or Mock Resetting: - Global Configuration: Check if your Vitest configuration has mockReset: true. This setting will clear your mock implementations before each test, causing them to appear as undefined or empty functions [7]. - Hoisting: Remember that vi.mock is hoisted to the top of the file and executed before imports [1][5]. If you need to reference variables in your factory that are defined outside its scope, use vi.hoisted to ensure they are available when the factory runs [1][6]. If your imports remain "undefined" despite providing a factory, verify that you are not accidentally overwriting the module object with a plain function or an incompatible structure; the factory must return an object that aligns with the module's exported structure [8].
Citations:
- 1: https://vitest.dev/api/vi
- 2: Factory function returns undefined vitest-dev/vitest#1011
- 3: https://stackoverflow.com/questions/75890929/vitest-error-no-functionname-export-is-defined-on-the-path
- 4: https://vitest.dev/guide/mocking/modules
- 5: https://vitest.dev/guide/mocking
- 6: https://github.com/vitest-dev/vitest/blob/v4.1.9/docs/api/vi.md
- 7: https://stackoverflow.com/questions/78128073/vitest-how-to-set-mock-implementation-in-vi-mock
- 8: vi.mock implementation results in undefined modules vitest-dev/vitest#949
Keep the recharts mock in sync with the component imports
test/dashboard-insights.test.tsx should include Sector in the vi.mock("recharts") factory (or spread the real module) so it matches components/dashboard/dashboard-insights.tsx and doesn’t fail on module init.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@package.json` at line 54, The Recharts test mock is missing a symbol imported
by dashboard-insights, causing module initialization to break. Update the
vi.mock("recharts") setup used by test/dashboard-insights.test.tsx so it either
includes Sector explicitly or spreads the real Recharts module, keeping it
aligned with components/dashboard/dashboard-insights.tsx and all imported
symbols.
|
Looks like these dependencies are updatable in another way, so this is no longer needed. |
Bumps the npm-minor-patch group with 24 updates:
1.1.121.2.01.3.41.3.51.1.131.1.141.1.161.1.172.1.172.1.182.1.92.1.101.1.91.1.102.3.02.3.11.2.51.3.01.3.01.3.11.1.141.1.151.2.161.2.171.18.01.22.01.5.01.6.07.79.07.80.03.8.13.9.04.3.14.3.24.1.84.1.917.0.717.0.80.54.00.57.01.69.01.72.08.5.158.5.164.3.14.3.24.1.84.1.9Updates
@radix-ui/react-avatarfrom 1.1.12 to 1.2.0Changelog
Sourced from @radix-ui/react-avatar's changelog.
Commits
Updates
@radix-ui/react-checkboxfrom 1.3.4 to 1.3.5Changelog
Sourced from @radix-ui/react-checkbox's changelog.
Commits
Updates
@radix-ui/react-collapsiblefrom 1.1.13 to 1.1.14Changelog
Sourced from @radix-ui/react-collapsible's changelog.
Commits
Updates
@radix-ui/react-dialogfrom 1.1.16 to 1.1.17Changelog
Sourced from @radix-ui/react-dialog's changelog.
Commits
Updates
@radix-ui/react-dropdown-menufrom 2.1.17 to 2.1.18Changelog
Sourced from @radix-ui/react-dropdown-menu's changelog.
Commits
Updates
@radix-ui/react-labelfrom 2.1.9 to 2.1.10Changelog
Sourced from @radix-ui/react-label's changelog.
Commits
Updates
@radix-ui/react-progressfrom 1.1.9 to 1.1.10Changelog
Sourced from @radix-ui/react-progress's changelog.
Commits
Updates
@radix-ui/react-selectfrom 2.3.0 to 2.3.1Changelog
Sourced from @radix-ui/react-select's changelog.
Commits
Updates
@radix-ui/react-slotfrom 1.2.5 to 1.3.0Changelog
Sourced from @radix-ui/react-slot's changelog.
Commits
Updates
@radix-ui/react-switchfrom 1.3.0 to 1.3.1Changelog
Sourced from @radix-ui/react-switch's changelog.
Commits
Updates
@radix-ui/react-tabsfrom 1.1.14 to 1.1.15Changelog
Sourced from @radix-ui/react-tabs's changelog.
Commits
Updates
@radix-ui/react-toastfrom 1.2.16 to 1.2.17Changelog
Sourced from @radix-ui/react-toast's changelog.
Commits
Updates
lucide-reactfrom 1.18.0 to 1.22.0Release notes
Sourced from lucide-react's releases.
... (truncated)
Commits
5ff536eci(release.yml): Fix workflow and removeversionscripts in package scripts...Updates
radix-uifrom 1.5.0 to 1.6.0Changelog
Sourced from radix-ui's changelog.
Commits
Updates
react-hook-formfrom 7.79.0 to 7.80.0Release notes
Sourced from react-hook-form's releases.
Changelog
Sourced from react-hook-form's changelog.
Commits
ebcf9c27.80.04755fd0🦌 upgrade dev deps (#13537)3f38974🧄 feat: disable useFieldArray fields (#13535)62be736🐞 fix(deepEqual): empty array and empty plain object should not be equal (#13...cee92e2🛺 perf: make rhf more performant (#13524)782313f🧪 tests: add tests for setValue within form.subscribe (#13531)01930f0🍖 chore: bench mark on perf (#13530)7bb1825📖 update changelog v7.79.0Updates
rechartsfrom 3.8.1 to 3.9.0Release notes
Sourced from recharts's releases.
... (truncated)
Commits
8c1cce7v3.9.0 (#7490)e5fe9bbAdd custom fillOpacity on hover website example (#7489)ad1590fAdd test for Pie and Legend animation (#7488)337edbdAdd animate-by-scroll example and update docs (#7487)0063aa4fix: preserve single-value line dash gaps during animation (#7405)6dbe130Add new example where chart animates by scroll (#7484)a2c4171Manual animations on website (#7483)c88f5f3Simplify and export some of the new animation props (#7481)410cf5cRenaming some of the animation props (#7477)a1b89c6chore(deps-dev): bump undici from 6.26.0 to 6.27.0 (#7475)Updates
@tailwindcss/postcssfrom 4.3.1 to 4.3.2Release notes
Sourced from @tailwindcss/postcss's releases.
Changelog
Sourced from @tailwindcss/postcss's changelog.
Commits
056a1554.3.2 (#20281)Updates
@vitest/coverage-v8from 4.1.8 to 4.1.9Release notes
Sourced from @vitest/coverage-v8's releases.
Commits
a7a61e7chore: release v4.1.9 (#10598)Updates
lint-stagedfrom 17.0.7 to 17.0.8Release notes
Sourced from lint-staged's releases.
Changelog
Sourced from lint-staged's changelog.
Commits
5f3b8f2Merge pull request #1812 from lint-staged/changeset-release/main43a9b8dchore(changeset): release630e2f6Merge pull request #1809 from lint-staged/restore-merge-status179b437fix: restore Git merge status after creating backup stash6bae2e2Merge pull request #1811 from lint-staged/exec-git-ignore-stderrb82a830ci: run npm audit omitting dev, including prod dependencies0b19b80build(deps): update dependencies3d0b2c0fix: ignore stderr when doing Git operationsUpdates
oxfmtfrom 0.54.0 to 0.57.0Changelog
Sourced from oxfmt's changelog.
Commits
5306f24release(apps): oxlint v1.72.0 && oxfmt v0.57.0 (#23935)c4be770release(apps): oxlint v1.71.0 && oxfmt v0.56.0 (#23707)aa79b5brelease(apps): oxlint v1.70.0 && oxfmt v0.55.0 (#23442)9a2788bfeat(linter/unicorn): implementprefer-export-fromrule (#22935)Updates
oxlintfrom 1.69.0 to 1.72.0Release notes
Sourced from oxlint's releases.
... (truncated)
Changelog
Sourced from oxlint's changelog.