/jsStatements

Primary LanguageJavaScript

Start development

  • npm test Run unit test (Jest)
  • npm start Run storybook test (Storybook)

Source Import Sample

Jest

src/__tests__/sample.ts

describe('Sample', () => {
  test('Test', () => {
    expect('text').toEqual('text');
  });
});

Storybook

src/components/Sample.stories.tsx

import { storiesOf } from '@storybook/react';
import React from 'react';
import { Sample } from './Sample';

storiesOf('Sample', module)
  .add('text=Hello?', () => <Sample text="Hello?" />)
  .add('text=World?', () => <Sample text="World?" />);