react-styleguidist
react-styleguidist copied to clipboard
chore: upgrade Jest from v26 to v30
Summary
Upgrades Jest from v26 to v30 to prepare for future dependency updates.
Changes
- Upgrade
jestfrom ^26.6.0 to ^30.0.0 - Upgrade
babel-jestfrom ^26.6.0 to ^30.0.0 - Upgrade
@types/jestfrom ^26.0.14 to ^30.0.0 - Add
jest-environment-jsdom^30.0.0 (no longer bundled with Jest 27+) - Update Jest config:
testURL→testEnvironment+testEnvironmentOptions(Jest 28+ requirement) - Update deprecated Jest matchers across all test files:
toBeCalledWith→toHaveBeenCalledWithtoBeCalled→toHaveBeenCalledtoBeCalledTimes→toHaveBeenCalledTimestoThrowError→toThrow
- Update 75 snapshots for Jest 30 formatting changes
Testing
- ✅ All 607 tests passing (17 skipped)
- ✅ All 197 snapshots passing
- ✅ Lint and TypeScript checks passing