{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/311","labels_url":"https://api.github.com/repos/facebook/jest/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/311/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/311/events","html_url":"https://github.com/facebook/jest/issues/311","id":63114276,"number":311,"title":"Super expression must either be null or a function, not object","user":{"login":"jim-y","id":6633426,"avatar_url":"https://avatars.githubusercontent.com/u/6633426?v=3","gravatar_id":"","url":"https://api.github.com/users/jim-y","html_url":"https://github.com/jim-y","followers_url":"https://api.github.com/users/jim-y/followers","following_url":"https://api.github.com/users/jim-y/following{/other_user}","gists_url":"https://api.github.com/users/jim-y/gists{/gist_id}","starred_url":"https://api.github.com/users/jim-y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jim-y/subscriptions","organizations_url":"https://api.github.com/users/jim-y/orgs","repos_url":"https://api.github.com/users/jim-y/repos","events_url":"https://api.github.com/users/jim-y/events{/privacy}","received_events_url":"https://api.github.com/users/jim-y/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-19T23:24:49Z","updated_at":"2015-04-27T07:06:22Z","closed_at":null,"body":"Hi all,\r\n\r\nI get the following error `Super expression must either be null or a function, not object` when I try to test my ES6 Flux store with Jest.\r\n\r\nMy store is like:\r\n\r\n```js\r\nclass PirateStore extends EventEmitter {\r\n  // ...\r\n  getPirate() {\r\n    return _pirate;\r\n  }\r\n}\r\nexport default new PirateStore();\r\n```\r\n\r\nAnd I would like to write something like:\r\n\r\n```js\r\njest.dontMock('../PirateStore');\r\nimport PirateStore from '../PirateStore';\r\ndescribe('PirateStore', () => {\r\n  it('it\\'s initial state is undefined', () => {\r\n    const state = PirateStore.getPirate();\r\n    expect(state).not.toBeDefined();\r\n  });\r\n});\r\n```\r\n\r\nAny advice?\r\n\r\nAdditional: my babel-jest setup seems to work OK. The proper jest output is:\r\n\r\n```bash\r\nUsing Jest CLI v0.4.0\r\n FAIL  lib/stores/__tests__/PirateStore-test.js\r\nTypeError: /home/jim-y/projects/fluxury/lib/stores/__tests__/PirateStore-test.js: /home/jim-y/projects/fluxury/lib/stores/PirateStore.js: Super expression must either be null or a function, not object\r\n1 test failed, 0 tests passed (1 total)\r\nRun time: 0.963s\r\nnpm ERR! Test failed.  See above for more details.\r\nnpm ERR! not ok code 0\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/96525780","html_url":"https://github.com/facebook/jest/issues/311#issuecomment-96525780","issue_url":"https://api.github.com/repos/facebook/jest/issues/311","id":96525780,"user":{"login":"alexeylih","id":829544,"avatar_url":"https://avatars.githubusercontent.com/u/829544?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeylih","html_url":"https://github.com/alexeylih","followers_url":"https://api.github.com/users/alexeylih/followers","following_url":"https://api.github.com/users/alexeylih/following{/other_user}","gists_url":"https://api.github.com/users/alexeylih/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeylih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeylih/subscriptions","organizations_url":"https://api.github.com/users/alexeylih/orgs","repos_url":"https://api.github.com/users/alexeylih/repos","events_url":"https://api.github.com/users/alexeylih/events{/privacy}","received_events_url":"https://api.github.com/users/alexeylih/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T07:06:22Z","updated_at":"2015-04-27T07:06:22Z","body":"Updating node from v0.10.33 to v0.12.2 resolved this issue for me."}}