{"id":579,"date":"2019-08-09T18:34:34","date_gmt":"2019-08-09T22:34:34","guid":{"rendered":"https:\/\/2019.nyc.wordcamp.org\/?post_type=wcb_session&#038;p=579"},"modified":"2019-08-09T18:34:35","modified_gmt":"2019-08-09T22:34:35","slug":"react-and-javascript-testing-in-and-around-wordpress","status":"publish","type":"wcb_session","link":"https:\/\/nyc.wordcamp.org\/2019\/session\/react-and-javascript-testing-in-and-around-wordpress\/","title":{"rendered":"React and JavaScript Testing In And Around WordPress"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">WordPress 5.0 introduced a new block-based post editor. The post editor is built with the \u201cGutenberg\u201d UI system that can be used by plugin developers to make custom blocks or other interfaces. Gutenberg is built on top of React, which is great framework for test-driven development.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this talk, I will cover the basics of testing in React and show why using testing makes React development faster and more joyful. This includes an overview of Jest and how to use it with react-testing-library and @wordpress\/scripts and how to use them to develop components that can be used in blocks and in other React apps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress 5.0 introduced a new block-based post editor. The post editor is built with the \u201cGutenberg\u201d UI system that can be used by plugin developers to make custom blocks or other interfaces. Gutenberg is built on top of React, which is great framework for test-driven development. In this talk, I will cover the basics of &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/nyc.wordcamp.org\/2019\/session\/react-and-javascript-testing-in-and-around-wordpress\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;React and JavaScript Testing In And Around WordPress&#8221;<\/span><\/a><\/p>\n","protected":false},"author":9688619,"featured_media":0,"template":"","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_wcpt_session_time":1568575800,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[576],"footnotes":""},"session_track":[174547],"session_category":[1276271],"class_list":["post-579","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-room-1","wcb_session_category-development-and-coding","entry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paD4wJ-9l","session_date_time":{"date":"September 15, 2019","time":"3:30 pm"},"session_speakers":[{"id":"576","slug":"joshua-pollock","name":"Josh Pollock","link":"https:\/\/nyc.wordcamp.org\/2019\/speaker\/joshua-pollock\/"}],"session_cats_rendered":"Development and Coding","_links":{"self":[{"href":"https:\/\/nyc.wordcamp.org\/2019\/wp-json\/wp\/v2\/sessions\/579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nyc.wordcamp.org\/2019\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/nyc.wordcamp.org\/2019\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":1,"href":"https:\/\/nyc.wordcamp.org\/2019\/wp-json\/wp\/v2\/sessions\/579\/revisions"}],"predecessor-version":[{"id":96680,"href":"https:\/\/nyc.wordcamp.org\/2019\/wp-json\/wp\/v2\/sessions\/579\/revisions\/96680"}],"speakers":[{"embeddable":true,"href":"https:\/\/nyc.wordcamp.org\/2019\/wp-json\/wp\/v2\/speakers\/576"}],"author":[{"embeddable":true,"href":"https:\/\/nyc.wordcamp.org\/2019\/wp-json\/wporg\/v1\/users\/shelob9"}],"wp:attachment":[{"href":"https:\/\/nyc.wordcamp.org\/2019\/wp-json\/wp\/v2\/media?parent=579"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/nyc.wordcamp.org\/2019\/wp-json\/wp\/v2\/session_track?post=579"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/nyc.wordcamp.org\/2019\/wp-json\/wp\/v2\/session_category?post=579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}