ultimate-seed
ultimate-seed copied to clipboard
karma ReferenceError's
Working on getting all tests to pass and haven't found a way to resolve the following errors:
Running "karma:single" (karma) task
Chrome 31.0.1650 (Windows 8) ERROR
Uncaught ReferenceError: module is not defined
at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/account/controllers/_layout.js:7
Chrome 31.0.1650 (Windows 8) ERROR
Uncaught ReferenceError: module is not defined
at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/account/controllers/summary.js:7
Chrome 31.0.1650 (Windows 8) ERROR
Uncaught ReferenceError: require is not defined
at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/account/index.js:7
Chrome 31.0.1650 (Windows 8) ERROR
Uncaught ReferenceError: module is not defined
at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/admin/controllers/_layout.js:8
Chrome 31.0.1650 (Windows 8) ERROR
Uncaught ReferenceError: module is not defined
at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/admin/controllers/dashboard.js:7
Chrome 31.0.1650 (Windows 8) ERROR
Uncaught ReferenceError: module is not defined
at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/admin/controllers/users.js:8
Chrome 31.0.1650 (Windows 8) ERROR
Uncaught ReferenceError: require is not defined
at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/admin/index.js:7
Chrome 31.0.1650 (Windows 8): Executed 0 of 0 ERROR (0.079 secs / 0 secs)
Warning: Task "karma:single" failed. Use --force to continue.
Thanks in advance for any 'insights'.
@LarryEitel Test runners are not properly set up. Using browserify
that is currently used in our seed is extremely useful for organizing client-side JS. But apparently it makes testing of Angular code somewhat challenging. We haven't looked into this in detail yet. It someone figures out how to set this up please submit pull request.
Related issue: https://github.com/pilwon/ultimate-seed/issues/11