Skip to content

Conversation

@heath-freenome
Copy link
Member

@heath-freenome heath-freenome commented Nov 27, 2025

Reasons for making this change

For consistency and to support react 19 conversion, upgraded a set of tests in core to typescript and jest

  • In @rjsf/core, added a typescript version of test_utils.js named testUtils.tsx
    • Renamed the setup-jest-env.js file to .ts updating it in the jest.config.json
    • Renamed the following test files to .tsx, converting to using jest and @testing-library constructs and matchers:
      • ArrayFieldTemplate, BooleanField, FieldTemplate, FormContext, NullField, NumberField
      • ObjectFieldTemplate, allOf, const, ifthenelse, withTheme, validate
    • The DescriptionField and TitleField tests changed enough so that they appear as a delete/new rather than rename
  • Updated the CHANGELOG.md accordingly

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests. I've run npx nx run-many --target=build --exclude=@rjsf/docs && npm run test:update to update snapshots, if needed.
    • I've updated docs if needed
    • I've updated the changelog with a description of the PR
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

For consistency and to support react 19 conversion, upgraded a set of tests in core to typescript and jest
- In `@rjsf/core`, added a typescript version of `test_utils.js` named `testUtils.tsx`
  - Renamed the `setup-jest-env.js` file to `.ts` updating it in the `jest.config.json`
  - Renamed the following test files to `.tsx`, converting to using `jest` and `@testing-library` constructs and matchers:
    - `ArrayFieldTemplate`, `FieldTemplate`, `FormContext`, `NullField`, `NumberField`, `ObjectFieldTemplate`, `allOf`, `const`, `ifthenelse` and `withTheme`
  - The `DescriptionField` and `TitleField` tests changed enough so that they appear as a delete/new rather than rename
- Updated the `CHANGELOG.md` accordingly
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.

1 participant