I am using TiShadow for running spec tests, but the error message is not detailed enough and very hard to understand where is wrong:
1) should open home.xml: "before each" hook:
TypeError: undefined is not a function
at new Controller (eval at custom_require (api/PlatformRequire.js:24:99))
at Object.createController (eval at custom_require (api/PlatformRequire.js:24:99))
at Context.<anonymous> (eval at custom_require (api/PlatformRequire.js:24:99))
at Hook.run (lib/ti-mocha.js:4332:32)
at next (lib/ti-mocha.js:4609:10)
at lib/ti-mocha.js:4626:5
at Titanium.timeslice (lib/ti-mocha.js:5692:27)
There is no information about which line of code in my controller( app/controllers/home.js) or view( app/views/home.xml) caused this error.