没有合适的资源?快使用搜索试试~ 我知道了~
a-react-visual-testing
共38个文件
png:10个
ts:7个
js:7个
需积分: 5 0 下载量 3 浏览量
2021-04-23
20:24:36
上传
评论
收藏 653KB ZIP 举报
温馨提示
React视觉测试 使用Storybook和Jest为React组件设置自动化的可视化测试。 第1步-前提条件 React: npx create-react-app my-app --template typescript 故事书: npx sb init 样式化组件: npm i styled-components和npm i -D @types/styled-components 第2步-设置Jest和Jest屏幕截图 npm i -D jest jest-puppeteer jest-screenshot puppeteer : npm i -D jest jest-puppeteer jest-screenshot puppeteer 设置Jest: jest.config.js jest-puppeteer 注册jest-screenshot/reporter以创建报
资源推荐
资源详情
资源评论
收起资源包目录
a-react-visual-testing-main.zip (38个子文件)
a-react-visual-testing-main
.storybook
main.js 196B
preview.js 74B
.gitignore 351B
tsconfig.json 503B
README.md 1KB
public
manifest.json 492B
robots.txt 67B
logo192.png 5KB
logo512.png 9KB
index.html 2KB
favicon.ico 4KB
LICENSE 34KB
.snapshots
text--styled.png 43KB
text--subtitle.png 8KB
text--default.png 63KB
button--default.png 5KB
text--body.png 63KB
button--styled.png 5KB
text--title.png 8KB
text--all.png 111KB
jest.setup.js 109B
package.json 1KB
src
components
Button
Button.tsx 216B
Button.types.ts 156B
Button.stories.tsx 432B
Button.style.ts 247B
index.ts 58B
Button.test.js 139B
Text
Text.style.ts 1KB
Text.types.ts 213B
Text.stories.tsx 1KB
index.ts 54B
Text.test.js 173B
Text.tsx 250B
index.ts 50B
utils
screenshotTest.js 1KB
jest.config.js 155B
package-lock.json 1.44MB
共 38 条
- 1
资源评论
十月飘零
- 粉丝: 34
- 资源: 4672
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功