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
This is a wired bug. Whenever mocha is used in the gulp file, it will not be parsed correctly thus the tasks cannot be listed.
Basically it's because atom's Task environment has document object but no location. This confuses mocha (See also mochajs/mocha#1654)
A temporary workaround is to expose a fake location object to global in your gulpfile:
GLOBAL.location=href:process.cwd() +"/"
A pretty corner case here, so not sure when and who will decide to fix it in which project. Just documented it here in case some one has the same problem.
The text was updated successfully, but these errors were encountered:
This is a wired bug. Whenever
mocha
is used in the gulp file, it will not be parsed correctly thus the tasks cannot be listed.Basically it's because atom's Task environment has
document
object but nolocation
. This confuses mocha (See also mochajs/mocha#1654)A temporary workaround is to expose a fake
location
object toglobal
in your gulpfile:A pretty corner case here, so not sure when and who will decide to fix it in which project. Just documented it here in case some one has the same problem.
The text was updated successfully, but these errors were encountered: