universe icon indicating copy to clipboard operation
universe copied to clipboard

SX Design: write a simple test for `Meter` component

Open mrtnzlml opened this issue 1 year ago • 0 comments

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

  1. There is a simple test validating the functionality of a Meter component (located in src/sx-design/src/Meter/Meter.js).
  2. Readme located in src/sx-design/README.md has been updated to reflect the existence of this test.
  3. The PR follows the project conventions (see other tests in src/sx-design/src/ for inspiration).
  4. All CI checks pass, and all code review comments are addressed.

Hits for successful completion of this task

  1. Clone & install the repository dependencies.
  2. Optionally run yarn workspace @adeira/sx-design storybook to see the SX Design Storybook in action.
  3. Create a new file, src/sx-design/src/Meter/__tests__/Meter.test.js, where the test should be located.
  4. 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. 😎

mrtnzlml avatar Sep 14 '22 03:09 mrtnzlml