<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bonnie Schulkin on Medium]]></title>
        <description><![CDATA[Stories by Bonnie Schulkin on Medium]]></description>
        <link>https://medium.com/@bonniedotdev?source=rss-a0d111cb0cf5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6mMjFvwXHQ67nSm5FvqemQ.png</url>
            <title>Stories by Bonnie Schulkin on Medium</title>
            <link>https://medium.com/@bonniedotdev?source=rss-a0d111cb0cf5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:39:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bonniedotdev/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ESLint, Prettier and VSCode Troubleshooting]]></title>
            <link>https://bonniedotdev.medium.com/eslint-prettier-and-vscode-troubleshooting-e75fc2de27b6?source=rss-a0d111cb0cf5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e75fc2de27b6</guid>
            <dc:creator><![CDATA[Bonnie Schulkin]]></dc:creator>
            <pubDate>Tue, 26 Apr 2022 17:41:23 GMT</pubDate>
            <atom:updated>2022-06-02T21:55:46.709Z</atom:updated>
            <content:encoded><![CDATA[<p>This post <a href="https://dev.to/bonnie/eslint-prettier-and-vscode-troubleshooting-ljh">has moved</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e75fc2de27b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Udemy, Enzyme and React 18]]></title>
            <link>https://bonniedotdev.medium.com/udemy-enzyme-and-react-18-e184bb751ea7?source=rss-a0d111cb0cf5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e184bb751ea7</guid>
            <category><![CDATA[react-testing-library]]></category>
            <category><![CDATA[enzyme]]></category>
            <category><![CDATA[udemy]]></category>
            <dc:creator><![CDATA[Bonnie Schulkin]]></dc:creator>
            <pubDate>Mon, 11 Apr 2022 18:18:19 GMT</pubDate>
            <atom:updated>2022-06-02T22:16:22.794Z</atom:updated>
            <content:encoded><![CDATA[<p>This post <a href="https://dev.to/bonnie/udemy-enzyme-and-react-18-4obm">has moved</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e184bb751ea7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Which Udemy React Testing Course is Right for You?]]></title>
            <link>https://bonniedotdev.medium.com/which-udemy-react-testing-course-is-right-for-you-54084c9d9f3d?source=rss-a0d111cb0cf5------2</link>
            <guid isPermaLink="false">https://medium.com/p/54084c9d9f3d</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[online-courses]]></category>
            <dc:creator><![CDATA[Bonnie Schulkin]]></dc:creator>
            <pubDate>Sun, 22 Aug 2021 18:37:33 GMT</pubDate>
            <atom:updated>2022-04-11T18:20:47.247Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="woman choosing between two doors" src="https://cdn-images-1.medium.com/max/1024/0*jOWqXqgoIyrkrdYY" /><figcaption>Photo by <a href="https://unsplash.com/@letyi?utm_source=medium&amp;utm_medium=referral">Letizia Bordoni</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>April 2022 update</strong>: Now that React 18 is out and there’s still no official React 17 adapter for Enzyme, I can’t recommend Enzyme as a tool. Please see <a href="https://bonniedotdev.medium.com/e184bb751ea7">this post</a> for more details.</p><p>The original post from August 2021:</p><p>I teach two React Testing courses on Udemy: <a href="https://www.udemy.com/course/react-testing-library/?referralCode=0B60E8FEB40F0D159E84">Testing React with Jest and Testing Library</a>, and <a href="https://www.udemy.com/course/react-testing-with-jest-and-enzyme/?referralCode=3A42BF689E28CADB0587">Testing React with Jest and Enzyme</a>. They sound pretty similar, and people often ask me: which one should I take? I hope this article will help clarify.</p><h3>tl;dr</h3><p>There’s lots of detail below, but here’s the quick-and-dirty recommendation:</p><p>I would recommend the <strong>Testing Library</strong> course if you want to follow current React Testing best practices (test only user-visible changes; don’t test internals like state), and if you want to use a library that’s more actively maintained.</p><p>If you’re interested in unit testing Redux (testing actions and reducers independent of the UI), learning about Jest mocks, or you’re working on a legacy code base that uses Enzyme, then the <strong>Enzyme</strong> course would be a better bet.</p><p>You can always try both of them out if you want, and return the one you aren’t as interested in (Udemy has a 30 day return policy). You can also find coupons for the courses at <a href="https://bonnie.dev/courses">https://bonnie.dev/courses</a>. Finally, some people find value in taking both courses, as there is not a whole lot of overlap.</p><h3>Testing Library Course</h3><h4>Best Practices</h4><p><a href="https://www.udemy.com/course/react-testing-library/?referralCode=0B60E8FEB40F0D159E84">Testing React with Jest and Testing Library</a> follows Testing Library’s guiding principle:</p><blockquote><a href="https://twitter.com/kentcdodds/status/977018512689455106">The more your tests resemble the way your software is used, the more confidence they can give you.</a></blockquote><h4>Test Behavior, not Code</h4><p>This means no testing of “implementation details” such as internal workings of Redux action creators and reducers, or mocking functions to return a specific value; instead, the test setup is done by entering text and clicking on the page as a user would. Also true to Testing Library’s philosophy, <a href="https://testing-library.com/docs/queries/about#priority">elements are found via accessibility handles</a> (the way a screen reader would find them) rather than data attributes added specifically for tests.</p><h4>Robust Tests</h4><p>This leads to <a href="https://kentcdodds.com/blog/write-fewer-longer-tests">longer tests</a> which are more robust. Since they’re not testing implementation details, refactoring your code shouldn’t mean you have to rewrite your tests. The tests check the spec from the user perspective; as long as the app behavior hasn’t changed, the tests shouldn’t need to change too.</p><h4>Mock Service Worker for Server Calls</h4><p>This course uses <a href="https://mswjs.io/">Mock Service Worker</a> to mimic responses from the server. This is a simple utility that works with calls from fetch, axios, or any other http request mechanism.</p><h3>Enzyme Course</h3><h4>Unit Testing</h4><p><a href="https://www.udemy.com/course/react-testing-with-jest-and-enzyme/?referralCode=3A42BF689E28CADB0587">Testing React with Jest and Enzyme</a> emphasizes unit testing: tests for Redux action creators and reducers, unit testing action dispatchers with Redux Thunk, and finding elements by test IDs instead of accessibility handles.</p><h4>Testing Redux and Context</h4><p>The Enzyme course tests a Redux app, and includes setting up Redux for testing. The Enzyme course also sets up and tests a <a href="https://reactjs.org/docs/context.html">React Context</a> version of the same app. In contrast, the Testing Library course app uses only React Context for shared state, and does not mention Redux at all (though I do have an article on <a href="https://javascript.plainenglish.io/setting-up-testing-library-and-redux-b80a699f0eda">Getting Started with Redux and Testing Library</a>).</p><h4>Jest Features</h4><p>This course also goes into more detail about Jest features, including how to <a href="https://jestjs.io/docs/mock-functions">mock functions and modules</a>, and <a href="https://jestjs.io/docs/api#describeeachtablename-fn-timeout">describe.each</a> for parametrized tests.</p><h4>Legacy Material for Class-Based Components</h4><p>The Enzyme course was first published in 2018, so it pre-dates the shift to React functional components. I have since updated the course to use functional components and hooks, but the course still includes lectures and exercises for class-based components. Please note: these are <strong>not maintained</strong>, but those using legacy code bases with class-based components my find the lectures useful.</p><h4>Moxios for Server Calls</h4><p>The Enzyme course teaches <a href="https://www.npmjs.com/package/moxios">moxios</a> for mocking responses from a server. As the name implies, this is a library that can be used to mock axios calls. It is less flexible and its syntax isn’t as clean as <a href="https://mswjs.io/">Mock Service Worker</a> (taught in the Testing Library course).</p><h3>Testing Library vs. Enzyme</h3><p>The above talks about the differences between the <em>courses</em>; now to talk a bit about the differences between the libraries themselves.</p><h4>Testing Library has Better Syntax</h4><p>You can read more about advantages of Testing Library over Enzyme in <a href="https://bonniedotdev.medium.com/testing-react-a-converts-journey-from-enzyme-to-testing-library-70f85eebb674">Testing React: A Convert’s Journey from Enzyme to Testing Library</a>. (I should add here that I’m not a behavioral testing purist, personally. I usually add in some implementation detail code for complex use cases — this makes it much easier to diagnose failing tests).</p><h4>Testing Library has Better Support</h4><p>Also, Enzyme is <a href="https://github.com/enzymejs/enzyme/issues/2429#issuecomment-858036400">maintained by just one person</a>, which means it sometimes falls behind on updates. Enzyme is <a href="https://github.com/enzymejs/enzyme/issues/1648">dependent on React internal workings</a>, which makes it likely to break on a major React update. Currently, Enzyme does not officially support React 17, even though there’s an <a href="https://www.npmjs.com/package/@wojtekmaj/enzyme-adapter-react-17">unofficial adapter</a> which is widely used and works fairly well.</p><h4>Enzyme Has a Longer History</h4><p>For starting a new project, I’d recommend Testing Library for the above reasons. However, there are a <em>lot</em> of legacy projects out there that use Enzyme (<a href="https://www.npmjs.com/package/enzyme">2 million+ weekly downloads!</a>). For that reason alone, the Enzyme course isn’t going to be obsolete any time soon.</p><h3>Course Overlap</h3><p>As mentioned in the tl;dr summary, there isn’t a lot of overlap between the two courses.</p><p>They both talk about Jest and TDD in the first section, and they both discuss the pattern of embedding state into a context. Other than that, the technologies are different (Enzyme vs Testing Library; moxios vs. Mock Service Worker; Redux is discussed in the Enzyme course and not the Testing Library course), the projects are different (Testing Library has one project that’s just a button and a checkbox, and the main project is a multi-page build-your-own ice cream sundae app, whereas Enzyme builds a click counter and a word game), and the philosophies are different (the Enzyme course focuses more on mocks and isolated tests, whereas the Testing Library course focuses on user flow tests).</p><h3>Coupons!</h3><p>You can always find coupons for all of my courses at <a href="https://bonnie.dev/courses">https://bonnie.dev/courses</a> .</p><h3>Conclusion</h3><p>Thanks for your interest in React testing courses on Udemy! If you have any questions that weren’t answered by this article, feel free to ask in the comments below or reach out on <a href="https://twitter.com/bonniedotdev">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54084c9d9f3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Redux and Testing Library]]></title>
            <link>https://javascript.plainenglish.io/setting-up-testing-library-and-redux-b80a699f0eda?source=rss-a0d111cb0cf5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b80a699f0eda</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[react-testing-library]]></category>
            <dc:creator><![CDATA[Bonnie Schulkin]]></dc:creator>
            <pubDate>Fri, 13 Aug 2021 21:38:20 GMT</pubDate>
            <atom:updated>2022-06-02T22:27:15.000Z</atom:updated>
            <content:encoded><![CDATA[<p>This post <a href="https://dev.to/bonnie/getting-started-with-redux-and-testing-library-36ln">has moved</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b80a699f0eda" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/setting-up-testing-library-and-redux-b80a699f0eda">Getting Started with Redux and Testing Library</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing React Apps that use React Router]]></title>
            <link>https://javascript.plainenglish.io/testing-react-apps-that-use-react-router-ea86377db1c8?source=rss-a0d111cb0cf5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea86377db1c8</guid>
            <category><![CDATA[react-router]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Bonnie Schulkin]]></dc:creator>
            <pubDate>Tue, 30 Mar 2021 03:16:37 GMT</pubDate>
            <atom:updated>2022-06-02T22:53:01.214Z</atom:updated>
            <content:encoded><![CDATA[<p>This post <a href="https://dev.to/bonnie/testing-react-apps-that-use-react-router-2bmd">has moved</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea86377db1c8" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/testing-react-apps-that-use-react-router-ea86377db1c8">Testing React Apps that use React Router</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why are functional tests so much longer than unit tests?]]></title>
            <link>https://bonniedotdev.medium.com/why-are-functional-tests-so-much-longer-than-unit-tests-d0dca0f82fd5?source=rss-a0d111cb0cf5------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0dca0f82fd5</guid>
            <category><![CDATA[functional-testing]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[unit-testing]]></category>
            <dc:creator><![CDATA[Bonnie Schulkin]]></dc:creator>
            <pubDate>Mon, 08 Mar 2021 20:54:32 GMT</pubDate>
            <atom:updated>2022-06-02T23:19:56.342Z</atom:updated>
            <content:encoded><![CDATA[<p>This post <a href="https://dev.to/bonnie/why-are-functional-tests-so-much-longer-than-unit-tests-4hgk">has moved</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0dca0f82fd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing Functions within Functional React Components]]></title>
            <link>https://bonniedotdev.medium.com/testing-functions-within-functional-react-components-fd2dc125f47c?source=rss-a0d111cb0cf5------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd2dc125f47c</guid>
            <category><![CDATA[functional-component]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Bonnie Schulkin]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 22:01:20 GMT</pubDate>
            <atom:updated>2022-06-02T22:30:45.401Z</atom:updated>
            <content:encoded><![CDATA[<p>This post <a href="https://dev.to/bonnie/testing-functions-within-functional-react-components-1mba">has moved</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd2dc125f47c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When to Unit Test your React App]]></title>
            <link>https://bonniedotdev.medium.com/when-to-unit-test-your-react-app-f5b211eb41c9?source=rss-a0d111cb0cf5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5b211eb41c9</guid>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[functional-testing]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Bonnie Schulkin]]></dc:creator>
            <pubDate>Wed, 10 Feb 2021 02:56:55 GMT</pubDate>
            <atom:updated>2022-06-02T23:05:09.805Z</atom:updated>
            <content:encoded><![CDATA[<p>This post <a href="https://dev.to/bonnie/when-to-unit-test-your-react-app-4659">has moved</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5b211eb41c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing React: A convert’s journey from Enzyme to Testing Library]]></title>
            <link>https://bonniedotdev.medium.com/testing-react-a-converts-journey-from-enzyme-to-testing-library-70f85eebb674?source=rss-a0d111cb0cf5------2</link>
            <guid isPermaLink="false">https://medium.com/p/70f85eebb674</guid>
            <category><![CDATA[enzyme]]></category>
            <category><![CDATA[react-testing]]></category>
            <category><![CDATA[testing-library]]></category>
            <dc:creator><![CDATA[Bonnie Schulkin]]></dc:creator>
            <pubDate>Wed, 18 Nov 2020 23:11:43 GMT</pubDate>
            <atom:updated>2022-06-02T22:36:30.785Z</atom:updated>
            <content:encoded><![CDATA[<p>This post <a href="https://dev.to/bonnie/testing-react-a-converts-journey-from-enzyme-to-testing-library-5ai0">has moved</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70f85eebb674" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>