React 模块经 Storybook 和 Snapshot 测试

TypeScript 中的 react-ts-storybook-storyshots 拥有 Storybook 和 Storyshots 功能。

标签:

笑话

React

快照

起步器

故事书

故事情节

模板

测试

打字稿

UI

直接祖先

直接后代

  • 也通过代码要求
  • 怀旧
  • yarn 或 npm i
  • 运行测试 yarn test
  • 建立 yarn build
  • 开始 yarn start
  • 故事书 yarn storybook

作者执照根据。受启发。

zip
react-ts-storybook-storyshots-master.zip 预估大小:22个文件
folder
react-ts-storybook-storyshots-master 文件夹
file
.babelrc 273B
folder
stories 文件夹
folder
__tests__ 文件夹
file
Like.test.ts 77B
folder
__snapshots__ 文件夹
file
Like.test.ts.snap 203B
file
Like.stories.tsx 294B
folder
.storybook 文件夹
file
config.js 179B
file
addons.js 86B
file
webpack.config.js 321B
file
package.json 2KB
file
jest.config.js 132B
folder
.jest 文件夹
file
register-context.ts 115B
file
LICENSE 1KB
folder
src 文件夹
file
index.tsx 136B
folder
components 文件夹
file
App.tsx 243B
file
Hello.tsx 190B
file
tsconfig.json 323B
file
.gitignore 125B
file
webpack.config.js 1KB
folder
public 文件夹
file
index.html 181B
file
iframe.html 3KB
file
favicon.ico 32KB
file
README.md 1KB
file
yarn.lock 442KB
zip 文件大小:183.86KB