generator-jest:向所有项目添加*支持

时间:2024-06-01 22:59:50
【文件属性】:

文件名称:generator-jest:向所有项目添加*支持

文件大小:133KB

文件格式:ZIP

更新时间:2024-06-01 22:59:50

JavaScript

开玩笑的 向所有项目添加*支持 安装 首先,使用安装和generator-jest(我们假设您已经预安装了 )。 npm install -g yo generator-jest 然后生成您的新项目: yo jest 完成后,您可以使用npm test运行测试。 要为您的组件生成测试,您可以运行: yo jest:test path/to/file-to-test.js # (optional) You can specifically define your component name yo jest:test path/to/file-to-test.js --componentName=useThisName 在自己的生成器中包含生成器笑话 generator-jest旨在在包含在您自己的生成器中时尽可能减少开销。 首先,将generator-jest安装为您自己的生成


【文件预览】:
generator-jest-master
----.snyk(2KB)
----package.json(2KB)
----__tests__()
--------app.test.js(3KB)
--------test.test.js(1KB)
----.yo-rc.json(80B)
----.github()
--------workflows()
----LICENSE(1KB)
----package-lock.json(529KB)
----generators()
--------test()
--------app()
----.gitignore(22B)
----README.md(2KB)
----.eslintignore(9B)
----.editorconfig(171B)
----.gitattributes(12B)

网友评论