File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed
packages/react-form-renderer/src/tests/form-renderer Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 7575 "@swc/helpers" : " ~0.5.11" ,
7676 "@testing-library/dom" : " ^8.17.1" ,
7777 "@testing-library/jest-dom" : " ^5.16.5" ,
78- "@testing-library/react" : " ^13.4.0 " ,
78+ "@testing-library/react" : " ^14.3.1 " ,
7979 "@testing-library/user-event" : " ^14.4.3" ,
8080 "@types/react" : " ^19.1.2" ,
8181 "@types/react-dom" : " ^19.1.3" ,
Original file line number Diff line number Diff line change @@ -673,10 +673,13 @@ describe('condition test', () => {
673673
674674 render ( < FormRenderer { ...initialProps } schema = { schema } /> ) ;
675675
676- await userEvent . type ( screen . getByLabelText ( 'field1' ) , 'foo' ) ;
676+ await act ( async ( ) => {
677+ await userEvent . type ( screen . getByLabelText ( 'field1' ) , 'foo' ) ;
678+ } ) ;
677679
678680 await waitFor ( ( ) => {
679681 expect ( errorSpy ) . toHaveBeenCalled ( ) ;
682+ // eslint-disable-next-line no-console
680683 expect ( console . error . mock . calls [ 0 ] [ 0 ] ) . toContain ( 'Received invalid setterValue. Expected object, received: ' ) ;
681684 } ) ;
682685 } ) ;
Original file line number Diff line number Diff line change 40704070 lz-string "^1.4.4"
40714071 pretty-format "^27.0.2"
40724072
4073- "@testing-library/dom@^8.5 .0":
4074- version "8.20.1 "
4075- resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.20.1 .tgz#2e52a32e46fc88369eef7eef634ac2a192decd9f "
4076- integrity sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g ==
4073+ "@testing-library/dom@^9.0 .0":
4074+ version "9.3.4 "
4075+ resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-9.3.4 .tgz#50696ec28376926fec0a1bf87d9dbac5e27f60ce "
4076+ integrity sha512-FlS4ZWlp97iiNWig0Muq8p+3rVDjRiYE+YKGbAqXOu9nwJFFOdL00kFpz42M+4huzYi86vAK1sOOfyOG45muIQ ==
40774077 dependencies:
40784078 "@babel/code-frame" "^7.10.4"
40794079 "@babel/runtime" "^7.12.5"
40994099 lodash "^4.17.15"
41004100 redent "^3.0.0"
41014101
4102- "@testing-library/react@^13.4.0 ":
4103- version "13.4.0 "
4104- resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-13.4.0 .tgz#6a31e3bf5951615593ad984e96b9e5e2d9380966 "
4105- integrity sha512-sXOGON+WNTh3MLE9rve97ftaZukN3oNf2KjDy7YTx6hcTO2uuLHuCGynMDhFwGw/jYf4OJ2Qk0i4i79qMNNkyw ==
4102+ "@testing-library/react@^14.3.1 ":
4103+ version "14.3.1 "
4104+ resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-14.3.1 .tgz#29513fc3770d6fb75245c4e1245c470e4ffdd830 "
4105+ integrity sha512-H99XjUhWQw0lTgyMN05W3xQG1Nh4lq574D8keFf1dDoNTJgp66VbJozRaczoF+wsiaPJNt/TcnfpLGufGxSrZQ ==
41064106 dependencies:
41074107 "@babel/runtime" "^7.12.5"
4108- "@testing-library/dom" "^8.5 .0"
4108+ "@testing-library/dom" "^9.0 .0"
41094109 "@types/react-dom" "^18.0.0"
41104110
41114111"@testing-library/user-event@^14.4.3":
You can’t perform that action at this time.
0 commit comments