Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
February 25, 2021 05:52 pm GMT

How do you test a design system?

I've inherited a component library that I'm bringing back to life.

In the past I've worked on React component libraries and used tools like Storybook to develop them. Testing these is pretty easy - I tend to use mostly react-testing-library and jest.

But this particular library is differenteach component is:

  • a scss file for styling
  • optionally, some javascript
  • a markdown file that combines written guidance for using the component with code samples and live previews

It's not that different from the GOV.UK design system.

Testing the javascript parts is easy enough, but it's only a small part of the overall library.

How do you go about testing something like this in a robust way?


Original Link: https://dev.to/dinosaurenby/how-do-you-test-a-design-system-1ije

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To