react native 学习笔记7

react

配置package.json

 "test:report": "jest --reporters='jest-html-reporter'"

安装jest-html-reporter

运行npm run test:report

跟目录下建测试报告:

jest --reporters='jest-html-reporter'

Determining test suites to run...jest-html-reporter >> Report generated (/Users/XXXX/RNLearn/jestTest/test-report.html)

jest测试报告

如果有错误。会有红色提示:

以上是 react native 学习笔记7 的全部内容, 来源链接: utcz.com/z/381924.html

回到顶部