import * as React from "react"
import { withTests } from "@storybook/addon-jest"
import { storiesOf } from "@storybook/react"

// @ts-ignore
import results from "../.jest-test-results.json"

storiesOf("单元测试", module)
  .addDecorator(withTests({ results }))
  // .addParameters({
  //     viewMode: "canvas",
  //     previewTabs: {
  //         "storybook/docs/panel": {
  //             index: -1
  //         }
  //     }
  // })
  .add("工具方法", () => <p></p>, {
    jest: ["sum.spec.ts", "range.spec.ts", "floorSearch.spec.ts"]
  })
