Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

index.test.ts 751 B

1234567891011121314151617181920212223242526
  1. /// <reference types="jest-enzyme" />
  2. /// <reference path="../utilities/jest/extensions.ts" />
  3. import * as T from './index'
  4. const Tesseract = T as Record<string, unknown>
  5. describe.each`
  6. name | componentId
  7. ${'button'} | ${'Button'}
  8. ${'checkbox'} | ${'Checkbox'}
  9. ${'icon'} | ${'Icon'}
  10. ${'radio button'} | ${'RadioButton'}
  11. ${'select'} | ${'Select'}
  12. ${'slider'} | ${'Slider'}
  13. ${'text input'} | ${'TextInput'}
  14. `('on $name component', ({ componentId, }) => {
  15. const theComponentId = componentId as string
  16. it('should exist', () => {
  17. expect(Tesseract[theComponentId]).toBeDefined()
  18. })
  19. it('should be a component', () => {
  20. expect(Tesseract[theComponentId]).toBeComponent()
  21. })
  22. })