[英]How to translate JS tests with Babel before running in R# test runner?
We want to write our JS specs in ES6 and translate them using Babel before running in the ReSharper test runner. 我们希望在ES6中编写我们的JS规范,并在运行ReSharper测试运行程序之前使用Babel对其进行翻译。 Currently, we're running the tests in Chrome (willing to use headless or PhantomJS if that turns out to be preferable) and executing Babel as an MSBuild task. 目前,我们正在Chrome中运行测试(如果愿意,可以使用headless或PhantomJS),并将Babel作为MSBuild任务执行。 But we're not sure how to instruct R# to use our translated specs to build Tests.js
. 但是我们不确定如何指示R#使用我们翻译的规范来构建Tests.js
。
Didn't find a way into the Tests.js
pipeline. 找不到通往Tests.js
管道的方法。 Doesn't seem possible. 似乎不可能。 So we're using npm-based test runner rather than the R# runner. 因此,我们使用的是基于npm的测试运行程序,而不是R#运行程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.