Couldn't find preset "airbnb" relative to directory
<p>I'm trying to set up Enzyme (written by Airbnb) in order to run some UI tests in React. However, no matter what configuration I have (and I've tried several) I keep getting this error. I added a <code>.babelrc</code> file which has the following inside:</p>

<pre><code>{
  "presets": ["airbnb"]
}
</code></pre>

<p>but it still gives me the same error. The <code>.babelrc</code> file is on the same level as the <code>package.json</code> file. I've searched everywhere online to see what could be causing this, but I'm at a loss. Any ideas? </p>