marko-js-archive / marko-util

Marko utilities
MIT License
0 stars 1 forks source link

Converted server test Mocha args should not contain boolean values #4

Closed austinkelleher closed 6 years ago

austinkelleher commented 6 years ago

Bug Report

Example:

module.exports = function(markoCli) {
  markoCli.config.mochaOptions = {
    colors: true // Boolean value
  };
};

Current Result

Results in the following generated args:

[ '/app/node_modules/@marko/test/util/server-tests-runner/mocha-tests-server.js', '--colors', true]

Expected Result

[ '/app/node_modules/@marko/test/util/server-tests-runner/mocha-tests-server.js', '--colors']

Example:

module.exports = function(markoCli) {
  markoCli.config.mochaOptions = {
    colors: false // Boolean value
  };
};

Current Result

Results in the following generated args:

[ '/app/node_modules/@marko/test/util/server-tests-runner/mocha-tests-server.js', '--colors', true]

Expected Result

[ '/app/node_modules/@marko/test/util/server-tests-runner/mocha-tests-server.js']