简体   繁体   English

在R#测试运行程序中运行之前,如何使用Babel翻译JS测试?

[英]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.

相关问题 karma 测试运行程序没有运行任何测试 - karma test runner not running any tests Babel将JSX转换为JS - Babel to translate JSX to JS 通过 WebStorm IDE 使用 js wdio 测试运行器运行测试 - Run tests with js wdio test runner via WebStorm IDE 在测试运行程序中触发Karma测试 - Triggering Karma tests in the test runner 在运行Nightwatch.js测试时,如何获取当前正在运行测试的浏览器名称? - When running Nightwatch.js test how can I get the name of browser currently running the tests? 远程运行 Cypress Test Runner - Running the Cypress Test Runner Remotely 如何在使用testcafe运行测试之前单击按钮 - How to click a button before running tests with testcafe Playwright JS:如何将我的测试文件/代码/目录从 Jest 测试运行程序转换为 Playwright 测试运行程序? - Playwright JS: How do I convert my test files/code/directory from Jest test runner to Playwright test runner? 如何保留从Babel转换为r.js uglifying的源图? - How to preserve sourcemaps from Babel transpiling to r.js uglifying? 如何在javascript上使用flask-babel进行翻译? - How to translate using flask-babel on javascript?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM