DatePicker: Write tests and refactor
Author: luizbaldiCreated Oct 6, 2020Updated Aug 5, 2024
Labelsgood first issue
The DatePicker component is already created and it's functional, but it was written some time ago and it can be refactored (migrating from class-based to hooks). In order to achieve a good result, we also need a good test coverage.

Running storybook locally
- Fork and clone the repo
- Install the necessary dependêncies using npm (run
npm ion the root folder) - Start storybook locally by running
npm start, this will start a local server and opens a tab on your browser automatically - Uncomment the code on
src/DatePicker/DatePicker.stories.jsfile in order to make it appear - Create a
DatePicker.spec.jsfile on the same folder to write tests
Aditional information
We're using React Testing Library to unit test our components and we have a good test coverage, so you can rely on the existing ones.
Before start working on this bug leave a comment here so we can avoid more than one person working on the issue, if you have any doubts feel free to drop a comment here or join us at Slack
Source: react95-io/React95