<?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 Christopher Christensen on Medium]]></title>
        <description><![CDATA[Stories by Christopher Christensen on Medium]]></description>
        <link>https://medium.com/@christopher.christensen?source=rss-e669c6cca336------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OvEX3ZsLYvjFRj3jNrLg5g@2x.jpeg</url>
            <title>Stories by Christopher Christensen on Medium</title>
            <link>https://medium.com/@christopher.christensen?source=rss-e669c6cca336------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 02:13:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@christopher.christensen/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[60 seconds Jest setup with Vue]]></title>
            <link>https://medium.com/@christopher.christensen/60-seconds-jest-setup-with-vue-982805ce90b3?source=rss-e669c6cca336------2</link>
            <guid isPermaLink="false">https://medium.com/p/982805ce90b3</guid>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[eslint]]></category>
            <category><![CDATA[jest]]></category>
            <category><![CDATA[vue]]></category>
            <dc:creator><![CDATA[Christopher Christensen]]></dc:creator>
            <pubDate>Fri, 12 Jun 2020 09:53:19 GMT</pubDate>
            <atom:updated>2020-06-12T09:55:18.595Z</atom:updated>
            <content:encoded><![CDATA[<p>This entry only covers the use case where the Vue Cli was used to create a Vue project. The Vue Cli has a core Jest plugin which we will be taking advantage of.</p><ol><li>Create a Vue project: vue create &lt;project name&gt;</li><li>Add Jest: vue add unit-jest</li><li>If you are using EsLint add this to your <strong>package.json </strong>under esLintConfig: &quot;env&quot;: { &quot;node&quot;: true, &quot;jest&quot;: true }</li><li>In your <strong>jest.config.js</strong> add the following: testMatch: [&#39;&lt;rootDir&gt;/**/*.spec.(js)&#39;]</li><li>Now you can create spec files anywhere in your project.</li></ol><p>In case you want to test spec files with the Typescript extension <strong>.ts</strong>, then just replace (js) in thetestMatch phrase with (ts|tsx|js) and you are good to go.</p><p>To run your tests you can run vue-cli-service test:unit or add this command to your <strong>package.json</strong> and then run something like npm run test:unit .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=982805ce90b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>