I am completely new to testing in Ember (testing in general). I am following the Ember 2.x course at Front End Masters and I have generated several components via ember-cli. When I go to http://localhost:4200/tests
, each of these components returns an identical set of errors.
Integration | Component | my component it renders (4, 0, 4)
1. Uncaught TypeError: Cannot read property 'extend' of undefined
Source: http://localhost:4200/assets/vendor.js:43347
2. Died on test #2 at Object.test (http://localhost:4200/assets/test-support.js:1997:11)
at http://localhost:4200/assets/github-ui.js:2076:15
at mod.state (http://localhost:4200/assets/vendor.js:150:29)
at tryFinally (http://localhost:4200/assets/vendor.js:30:14)
at requireModule (http://localhost:4200/assets/vendor.js:148:5)
at Object.TestLoader.require (http://localhost:4200/assets/test-loader.js:29:9)
at Object.TestLoader.loadModules (http://localhost:4200/assets/test-loader.js:21:18): Cannot read property 'render' of undefined
Source:
TypeError: Cannot read property 'render' of undefined
at http://localhost:4200/assets/github-ui.js:2082:9
at Object.wrapper (http://localhost:4200/assets/test-support.js:1979:29)
at Object.Test.run (http://localhost:4200/assets/test-support.js:3660:28)
at http://localhost:4200/assets/test-support.js:3789:11
at process (http://localhost:4200/assets/test-support.js:3348:24)
at begin (http://localhost:4200/assets/test-support.js:3393:2)
at http://localhost:4200/assets/test-support.js:3409:4
3. Uncaught TypeError: Cannot read property 'subject' of undefined
Source: http://localhost:4200/assets/vendor.js:43347
4. Expected 2 assertions, but 3 were run
Source:
at Object.test (http://localhost:4200/assets/test-support.js:1997:11)
at http://localhost:4200/assets/github-ui.js:2076:15
at mod.state (http://localhost:4200/assets/vendor.js:150:29)
at tryFinally (http://localhost:4200/assets/vendor.js:30:14)
at requireModule (http://localhost:4200/assets/vendor.js:148:5)
at Object.TestLoader.require (http://localhost:4200/assets/test-loader.js:29:9)
at Object.TestLoader.loadModules (http://localhost:4200/assets/test-loader.js:21:18)
These are the default tests. I have not made any modifications. These components are working as expected in my app. What do I need to do?
Additional details:
DEBUG: -------------------------------
DEBUG: Ember : 2.4.1
DEBUG: Ember Data : 2.5.0-beta.1+1327e0755b
DEBUG: jQuery : 1.12.1
DEBUG: -------------------------------