{"action":"created","issue":{"url":"https://api.github.com/repos/nrwl/nx/issues/750","repository_url":"https://api.github.com/repos/nrwl/nx","labels_url":"https://api.github.com/repos/nrwl/nx/issues/750/labels{/name}","comments_url":"https://api.github.com/repos/nrwl/nx/issues/750/comments","events_url":"https://api.github.com/repos/nrwl/nx/issues/750/events","html_url":"https://github.com/nrwl/nx/issues/750","id":356884842,"node_id":"MDU6SXNzdWUzNTY4ODQ4NDI=","number":750,"title":"Help:  Tests are not updating snapshot, sorry if this is not the right forum","user":{"login":"daBishMan","id":5060855,"node_id":"MDQ6VXNlcjUwNjA4NTU=","avatar_url":"https://avatars3.githubusercontent.com/u/5060855?v=4","gravatar_id":"","url":"https://api.github.com/users/daBishMan","html_url":"https://github.com/daBishMan","followers_url":"https://api.github.com/users/daBishMan/followers","following_url":"https://api.github.com/users/daBishMan/following{/other_user}","gists_url":"https://api.github.com/users/daBishMan/gists{/gist_id}","starred_url":"https://api.github.com/users/daBishMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daBishMan/subscriptions","organizations_url":"https://api.github.com/users/daBishMan/orgs","repos_url":"https://api.github.com/users/daBishMan/repos","events_url":"https://api.github.com/users/daBishMan/events{/privacy}","received_events_url":"https://api.github.com/users/daBishMan/received_events","type":"User","site_admin":false},"labels":[{"id":666969772,"node_id":"MDU6TGFiZWw2NjY5Njk3NzI=","url":"https://api.github.com/repos/nrwl/nx/labels/type:%20question","name":"type: question","color":"c2e0c6","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-04T16:22:52Z","updated_at":"2018-09-11T20:51:23Z","closed_at":"2018-09-11T20:51:23Z","author_association":"NONE","body":"Hello I created a new project using nx 6.3 with CLI 6.15 to try to get Jest to work and understand how it works.   \r\n\r\nRepo for this work [Public Repo](https://github.com/daBishMan/nx-jest)\r\n\r\nI created a new workspace, added jest, created a single library, I am able to create the first snapshot.  I updated the HTML on both components under tests, yet I failed to get the snapshots to update, I am not sure if it is an nx problem, a user problem (definitely a possibility) or jest problem. \r\n\r\nI can not figure out how to get the jest runner to re-generate the snapshot.\r\n\r\nCan you help.  "},"comment":{"url":"https://api.github.com/repos/nrwl/nx/issues/comments/420421095","html_url":"https://github.com/nrwl/nx/issues/750#issuecomment-420421095","issue_url":"https://api.github.com/repos/nrwl/nx/issues/750","id":420421095,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDQyMTA5NQ==","user":{"login":"FrozenPandaz","id":8104246,"node_id":"MDQ6VXNlcjgxMDQyNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/8104246?v=4","gravatar_id":"","url":"https://api.github.com/users/FrozenPandaz","html_url":"https://github.com/FrozenPandaz","followers_url":"https://api.github.com/users/FrozenPandaz/followers","following_url":"https://api.github.com/users/FrozenPandaz/following{/other_user}","gists_url":"https://api.github.com/users/FrozenPandaz/gists{/gist_id}","starred_url":"https://api.github.com/users/FrozenPandaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrozenPandaz/subscriptions","organizations_url":"https://api.github.com/users/FrozenPandaz/orgs","repos_url":"https://api.github.com/users/FrozenPandaz/repos","events_url":"https://api.github.com/users/FrozenPandaz/events{/privacy}","received_events_url":"https://api.github.com/users/FrozenPandaz/received_events","type":"User","site_admin":false},"created_at":"2018-09-11T20:51:23Z","updated_at":"2018-09-11T20:51:23Z","author_association":"CONTRIBUTOR","body":"`yarn test libname --updateSnapshot` and read the [Jest Docs on Snapshot Testing](https://jestjs.io/docs/en/snapshot-testing).\r\n\r\nShort Explanation of **Snapshot Testing**\r\n* The first time a snapshot is tested, it is generated by default (no options).\r\n  * The snapshot's value is set to the input of the test.\r\n  * These snapshots should be committed to your repository.\r\n* After the snapshot is generated for the first time, it is matched against the test input.\r\n* If it does not match, the expectation fails.\r\n* If this change is _unintentional_, this is a real mistake and should be fixed.\r\n* If this change is _intentional_, the snapshot needs to be updated. To do this, pass `--updateSnapshot` (or `-u`).\r\n  * These changes should be committed to your repository.\r\n* In CI, if the snapshot is not generated, the test should fail.\r\n  * Use the `--ci` option when running in CI to cause tests without snapshots to fail.\r\n\r\nI hope this answers your question. Feel free to reopen the issue if it is not answered."}}
{"actor":{"display_login":"FrozenPandaz"}}