universe
universe copied to clipboard
SX Design: write a simple test for `Meter` component
The purpose of this test will be to make sure that the Meter
component renders without any issues. It should not be very complex. After all, the component doesn't do much more than just render.
Acceptance criteria
- There is a simple test validating the functionality of a
Meter
component (located insrc/sx-design/src/Meter/Meter.js
). - Readme located in
src/sx-design/README.md
has been updated to reflect the existence of this test. - The PR follows the project conventions (see other tests in
src/sx-design/src/
for inspiration). - All CI checks pass, and all code review comments are addressed.
Hits for successful completion of this task
- Clone & install the repository dependencies.
- Optionally run
yarn workspace @adeira/sx-design storybook
to see the SX Design Storybook in action. - Create a new file,
src/sx-design/src/Meter/__tests__/Meter.test.js
, where the test should be located. - Run
./x tests src/sx-design/src/Meter/__tests__/Meter.test.js
to ensure the implementation is working correctly.
How to install and run this project
git clone --depth=100 [email protected]:adeira/universe.git
cd universe
corepack enable
chmod +x ./x
./x install
To run JavaScript tests:
./x tests
For more information, please visit README.md
located at the root of this project. If you get lost, you can also start a new discussion. 😎