{"action":"created","issue":{"url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/134","repository_url":"https://api.github.com/repos/gcanti/tcomb-form-native","labels_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/134/comments","events_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/134/events","html_url":"https://github.com/gcanti/tcomb-form-native/issues/134","id":142706003,"number":134,"title":"Jest tests are broken: Error: Cannot find module './datepicker' from 'index.js'","user":{"login":"bartonhammond","id":1282364,"avatar_url":"https://avatars.githubusercontent.com/u/1282364?v=3","gravatar_id":"","url":"https://api.github.com/users/bartonhammond","html_url":"https://github.com/bartonhammond","followers_url":"https://api.github.com/users/bartonhammond/followers","following_url":"https://api.github.com/users/bartonhammond/following{/other_user}","gists_url":"https://api.github.com/users/bartonhammond/gists{/gist_id}","starred_url":"https://api.github.com/users/bartonhammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartonhammond/subscriptions","organizations_url":"https://api.github.com/users/bartonhammond/orgs","repos_url":"https://api.github.com/users/bartonhammond/repos","events_url":"https://api.github.com/users/bartonhammond/events{/privacy}","received_events_url":"https://api.github.com/users/bartonhammond/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gcanti/tcomb-form-native/labels/Type:%20Docs","name":"Type: Docs","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2016-03-22T16:39:04Z","updated_at":"2016-07-22T14:57:14Z","closed_at":null,"body":"### Version\r\n\r\nTell us which versions you are using:\r\n\r\n- tcomb-form-native v0.4.0\r\n- react-native v0.22.2\r\n\r\n### Expected behaviour\r\n\r\nTests should pass as they used to!\r\n\r\n### Actual behaviour\r\n\r\nError: Cannot find module './datepicker' from 'index.js'\r\n\r\n### Steps to reproduce\r\n\r\n1. git clone git@github.com:bartonhammond/snowflake.git\r\n2. npm3 install\r\n3. npm3 test\r\n\r\n```\r\n  ✓ it if disabled and not checked, it should display square-o and text\r\n\r\n FAIL  src/components/__tests__/LoginForm-test.js\r\nRuntime Error\r\nError: Cannot find module './datepicker' from 'index.js'\r\n    at Loader._resolveNodeModule (/Users/barton/projects/MFV/snowflake/node_modules/jest-cli/src/HasteModuleLoader/HasteModuleLoader.js:431:11)\r\n    at Object.<anonymous> (/Users/barton/projects/MFV/snowflake/node_modules/tcomb-form-native/lib/templates/bootstrap/index.js:5:12)\r\n    at Object.<anonymous> (/Users/barton/projects/MFV/snowflake/node_modules/tcomb-form-native/index.js:3:15)\r\n1 test suite failed, 74 tests passed (74 total in 11 test suites, run time 7.245s)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/comments/234566808","html_url":"https://github.com/gcanti/tcomb-form-native/issues/134#issuecomment-234566808","issue_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/134","id":234566808,"user":{"login":"bartonhammond","id":1282364,"avatar_url":"https://avatars.githubusercontent.com/u/1282364?v=3","gravatar_id":"","url":"https://api.github.com/users/bartonhammond","html_url":"https://github.com/bartonhammond","followers_url":"https://api.github.com/users/bartonhammond/followers","following_url":"https://api.github.com/users/bartonhammond/following{/other_user}","gists_url":"https://api.github.com/users/bartonhammond/gists{/gist_id}","starred_url":"https://api.github.com/users/bartonhammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartonhammond/subscriptions","organizations_url":"https://api.github.com/users/bartonhammond/orgs","repos_url":"https://api.github.com/users/bartonhammond/repos","events_url":"https://api.github.com/users/bartonhammond/events{/privacy}","received_events_url":"https://api.github.com/users/bartonhammond/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T14:57:14Z","updated_at":"2016-07-22T14:57:14Z","body":"The following seems to work w/ JEST testing!\r\n\r\nHere is the full ```package.json``` wrt Jest setup:\r\n\r\n```\r\n \"jest\": {\r\n    \"setupEnvScriptFile\": \"./node_modules/react-native/jestSupport/env.js\",\r\n    \"haste\": {\r\n      \"defaultPlatform\": \"ios\",\r\n      \"platforms\": [\r\n        \"ios\",\r\n        \"android\"\r\n      ],\r\n      \"providesModuleNodeModules\": [\r\n        \"react-native\"\r\n      ]\r\n    },\r\n    \"testPathIgnorePatterns\": [\r\n      \"/node_modules/\"\r\n    ],\r\n    \"testFileExtensions\": [\r\n      \"es6\",\r\n      \"js\"\r\n    ],\r\n    \"moduleFileExtensions\": [\r\n      \"js\",\r\n      \"json\",\r\n      \"es6\",\r\n      \"ios.js\"   <<<<<<<<<<<<<<<<<<<<<<<< this makes it work!\r\n    ],\r\n    \"unmockedModulePathPatterns\": [\r\n      \"react\",\r\n      \"react-addons-test-utils\",\r\n      \"react-native-router-flux\",\r\n      \"promise\",\r\n      \"source-map\",\r\n      \"key-mirror\",\r\n      \"immutable\",\r\n      \"fetch\",\r\n      \"redux\",\r\n      \"redux-thunk\",\r\n      \"fbjs\"\r\n    ],\r\n    \"collectCoverage\": false,\r\n    \"verbose\": true\r\n  },\r\n```\r\n\r\nWould you like a PR w/ a note in the README?  "}}
{"actor":{"display_login":"bartonhammond"}}