Refactor function to a separate file

[MAILPOET-2835]
This commit is contained in:
Pavel Dohnal
2020-04-28 15:42:53 +02:00
committed by Veljko V
parent d7b514d526
commit f9ea393b07
6 changed files with 33 additions and 10 deletions

View File

@ -224,7 +224,7 @@ class RoboFile extends \Robo\Tasks {
}
public function testJavascript($xmlOutputFile = null) {
$command = './node_modules/.bin/mocha --require @babel/register tests/javascript/**/*.spec.js';
$command = './node_modules/.bin/mocha --require tests/javascript/babel_register.js tests/javascript/**/*.spec.js';
if (!empty($xmlOutputFile)) {
$command .= sprintf(