{"action":"created","issue":{"url":"https://api.github.com/repos/odoe/generator-arcgis-js-app/issues/6","labels_url":"https://api.github.com/repos/odoe/generator-arcgis-js-app/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/odoe/generator-arcgis-js-app/issues/6/comments","events_url":"https://api.github.com/repos/odoe/generator-arcgis-js-app/issues/6/events","html_url":"https://github.com/odoe/generator-arcgis-js-app/issues/6","id":124306464,"number":6,"title":"unit tests fail on default app","user":{"login":"jccartwright","id":918022,"avatar_url":"https://avatars.githubusercontent.com/u/918022?v=3","gravatar_id":"","url":"https://api.github.com/users/jccartwright","html_url":"https://github.com/jccartwright","followers_url":"https://api.github.com/users/jccartwright/followers","following_url":"https://api.github.com/users/jccartwright/following{/other_user}","gists_url":"https://api.github.com/users/jccartwright/gists{/gist_id}","starred_url":"https://api.github.com/users/jccartwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jccartwright/subscriptions","organizations_url":"https://api.github.com/users/jccartwright/orgs","repos_url":"https://api.github.com/users/jccartwright/repos","events_url":"https://api.github.com/users/jccartwright/events{/privacy}","received_events_url":"https://api.github.com/users/jccartwright/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-30T05:38:33Z","updated_at":"2016-01-24T23:33:12Z","closed_at":"2016-01-19T20:40:03Z","body":"It appears that a generated app w/o any modification fails the unit tests (http://localhost:8282/node_modules/intern/client.html?config=tests/intern) with errors like:\r\n\r\n`TypeError: View is not a function\r\n  at Test.registerSuite.View publishes a valid map [as test]  </tests/unit/components-map-mapview.js:30:17>\r\n  at eval  </node_modules/intern//lib/Test.js:211:24>\r\n  at eval  </node_modules/intern//node_modules/dojo/Promise.js:156:41>\r\n  at runCallbacks  </node_modules/intern//node_modules/dojo/Promise.js:19:22>\r\n  at eval  </node_modules/intern//node_modules/dojo/Promise.js:103:21>\r\n  at run  </node_modules/intern//node_modules/dojo/Promise.js:51:33>\r\n  at CallbackQueue.drain  </node_modules/intern//node_modules/dojo/CallbackQueue.js:39:35>\r\n  at MutationObserver.eval  </node_modules/intern//node_modules/dojo/nextTick.js:52:27>`\r\n\r\nIs it possible that there's a problem with the require?\r\n`var View = require('app/components/map/MapView');`"},"comment":{"url":"https://api.github.com/repos/odoe/generator-arcgis-js-app/issues/comments/174352573","html_url":"https://github.com/odoe/generator-arcgis-js-app/issues/6#issuecomment-174352573","issue_url":"https://api.github.com/repos/odoe/generator-arcgis-js-app/issues/6","id":174352573,"user":{"login":"jccartwright","id":918022,"avatar_url":"https://avatars.githubusercontent.com/u/918022?v=3","gravatar_id":"","url":"https://api.github.com/users/jccartwright","html_url":"https://github.com/jccartwright","followers_url":"https://api.github.com/users/jccartwright/followers","following_url":"https://api.github.com/users/jccartwright/following{/other_user}","gists_url":"https://api.github.com/users/jccartwright/gists{/gist_id}","starred_url":"https://api.github.com/users/jccartwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jccartwright/subscriptions","organizations_url":"https://api.github.com/users/jccartwright/orgs","repos_url":"https://api.github.com/users/jccartwright/repos","events_url":"https://api.github.com/users/jccartwright/events{/privacy}","received_events_url":"https://api.github.com/users/jccartwright/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T23:33:12Z","updated_at":"2016-01-24T23:33:12Z","body":"Thanks, that does seem to address the issue above.  However, I'm still finding a problem with the command-line runner, e.g. \r\n\r\n    cougar:testme jcc$ ./node_modules/.bin/intern-client config=tests/intern\r\n    Error: ENOENT: no such file or directory, open '/Users/jcc/testme/node_modules/.bin/main.js'\r\n    at Error  <native>\r\n    at Object.fs.openSync  <fs.js:584:18>\r\n    at Object.fs.readFileSync  <fs.js:431:33>\r\n    at Function.nodeConfig.loaderPatch.getText  <node_modules/dojo/_base/configNode.js:80:15>\r\n    at injectModule  <node_modules/dojo/dojo.js:1539:12>\r\n    at forEach  <node_modules/dojo/dojo.js:93:6>\r\n    at <node_modules/dojo/dojo.js:758:5>\r\n    at guardCheckComplete  <node_modules/dojo/dojo.js:1277:5>\r\n    at injectDependencies  <node_modules/dojo/dojo.js:757:4>\r\n    at contextRequire  <node_modules/dojo/dojo.js:821:6>\r\n\r\nIs that to be expected?"}}