【文件属性】:
文件名称:jest-github-actions-reporter:Jest Reporter在GitHub Actions中运行测试时创建注释
文件大小:245KB
文件格式:ZIP
更新时间:2021-05-05 06:23:00
TypeScript
GitHub Action的Jest Reporter
一个自定义的Jest报告程序,通过GitHub Actions运行时可创建注释。
用法
要在GitHub Actions运行中获取批注,您要做的就是向报告程序添加您的Jest配置。
安装npm install -D jest-github-actions-reporter
添加到您的jest.config.js :
module . exports = {
reporters : [
"default" ,
"jest-github-actions-reporter"
] ,
testLocationInResults : true
} ;
或者,您只能在CI构建期间添加它,例如在package.json :
{
// ...
"scripts" : {
"cit
【文件预览】:
jest-github-actions-reporter-master
----img()
--------annotations.png(271KB)
----package.json(665B)
----LICENSE(1KB)
----package-lock.json(7KB)
----dist()
--------index.js(1KB)
----src()
--------index.ts(1KB)
----tsconfig.json(228B)
----.gitignore(12B)
----README.md(2KB)