-
Notifications
You must be signed in to change notification settings - Fork 2.7k
fix(jest generator): accurate test script in windows platform #10133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Codecov ReportBase: 29.88% // Head: 29.88% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #10133 +/- ##
=======================================
Coverage 29.88% 29.88%
=======================================
Files 432 432
Lines 12407 12407
Branches 2973 2973
=======================================
Hits 3708 3708
Misses 8133 8133
Partials 566 566
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
依赖里加一个 cross-env ,然后用 |
用cross-env肯定更好,但是需要引入cross-env,我看贡献的指南里面推荐我们别去改依赖,我也没注意是不是已经引入了cross-env,所以判断了下平台 |
这个行为会添加很多 jest 的依赖的,我理解 “不改依赖” 指的是 umi 框架的依赖,这个功能是用户主动添加的行为,本来就会操作用户的依赖的。 |
好的,那我等会去引入cross-env来处理 |
生成器生成的test script在windows上不能直接使用,判断当前平台生成不同的script