You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per #132 I'm trying to use the --paths option in browserify w/ mochify to avoid writing relative paths everywhere.
> mochify --path ./app --transform babelify --transform envify test/**/*.js
/.../node_modules/mochify/node_modules/browserify/index.js:332
paths: (self._options.paths || []).map(function (p) {
^
TypeError: (self._options.paths || []).map is not a function
Attempting to use just one of the transforms didn't change things.
However, if I take away the transforms, things work, but obviously my tests error out since they needed babelify.
I got something slightly different when trying to format the argument as an array:
> mochify --path [./app] --transform babelify test/**/*.js
/.../node_modules/mochify/node_modules/module-deps/index.js:52
.filter(Boolean)
^
TypeError: this.paths.filter is not a function
Any help would be appreciated!
The text was updated successfully, but these errors were encountered:
@sankho Sorry for the late reply. The issue seems to be that --path returns a string while the internal paths option must be an array. PR #132 was implemented mainly for API use and the test case verifies it works when passing in an array. I think the solution here would be to check if opts.path is an array, and if not wrap it.
As per #132 I'm trying to use the
--paths
option in browserify w/ mochify to avoid writing relative paths everywhere.Attempting to use just one of the transforms didn't change things.
However, if I take away the transforms, things work, but obviously my tests error out since they needed babelify.
I got something slightly different when trying to format the argument as an array:
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: