{"repo":"d2iq/ui-kit","free":true,"listed":false,"github":"https://github.com/d2iq/ui-kit","clone":"git clone https://github.com/d2iq/ui-kit.git","description":"D2iQ UI Kit","language":"TypeScript","stars":38,"topics":["react","emotionjs","typescript","storybook","open-source","reactjs","design-system","jest","react-testing-library","hacktoberfest"],"license":"Apache-2.0","category":"ui-components","readme_excerpt":"D2iQ UI Kit UI Kit is a collaboration between D2iQ's product design team and engineering team. UI Kit provides tools for engineers to build applications that follow the standards and guidelines of the Design System. - Components - Design Tokens - Icon Library - Design Guidelines Getting started Install dependencies. Start the Storybook server locally then visit http://localhost:6006/ Linting ESLint is used for linting within the project. We suggest installing the ESLint extension in your preferred code editor. For more detailed information, see CONTRIBUTING.md. New Components To generate a new component run the command: Unit Testing Use test:watch if you want the tests to run automatically when a file changes: Pass parameters to the test engine (in this case jest) to run a single spec, for example, badge : Writing Unit Tests Important guidelines to follow for testing: - Single Expectation test. Every unit test should verify one behavior. - Keep your descriptions concise (bellow 40 chars ideally). One easy way to achieve this one is avoiding using \"should\". - Create the data you need. If you have a more complicated scenario, generate the data that is relevant to that particular case. For more on this topic, and examples we recommend Better Specs. The function asFragment is preferred over create from react-test-renderer as it seems to give more robust components and less failures. baseElement can also be useful for testing if you are dealing with testing something that renders ","default_branch":null,"files":null,"tree":[],"storefront":"/r/d2iq","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/d2iq/ui-kit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}