-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#209] React and React DOM upgraded to v18 #210
Conversation
…torybook, react component libs, testing libs,...) synchronised. Work in progress. Library for global storybook controls has React 18 as optional peer dependency, need to examine closer.
✅ Deploy Preview for s-forms-kbss ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…ormed to new standard of storybook (CSF3).
…rybook. Decorators might need further work to make it simple and unified
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but we need to create issue to reconsider how to do tests and to remove @enzyme-adapter-react-18.
expect(picker.props().showTimeSelect).toEqual(true); | ||
expect(picker.props().showTimeSelectOnly).toEqual(false); | ||
expect(picker.props().selected).toEqual(new Date(value)); | ||
expect(screen.queryByText("Time")).toBeNull(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is quite strange ... we should reconsider how to do this and create an issue for it.
@@ -1,7 +1,7 @@ | |||
import enzyme, { shallow, mount } from "enzyme"; | |||
import Adapter from "@wojtekmaj/enzyme-adapter-react-17"; | |||
import Adapter from "@cfaester/enzyme-adapter-react-18"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to get rid of this in a future issue.
Dependencies synchronised to correspond to React 18. Work in progress. Library for global storybook controls has React 18 as optional peer dependency, need to examine closer.