repo_description: Tools for developing, documenting, and testing React component libraries
repo_topics: cli components design-systems development documentation isolation jsx library mdx react styleguide testing ui
code: import { flatten } from '../src/util'
  
  test('flatten flattens an object', () => {
    const result = flatten({
      red: 'red',
      gray: {
        light: ['#fafafa', '#f5f5f5'],
        dark: ['#555', '#111']
      },
      brand: {
        black: 'black',
        white: 'white',
        tomato: 'tomato'
      }
    })
  
    expect(result).toMatchSnapshot()
  })
  