title: Jest error Could not locate module .... mapped as:
body: <p>I try use <code>Jest</code> with <code>VueJS</code> and <code>Quasar framework</code>. I write simple test:</p>
  
  <pre><code>import { GetUserDictionaryDataComponent, Component } from '@/pages/configurations/components/';
  
  describe('GetUserDictionaryDataComponent', () =&gt; {
    it('should get correct type', () =&gt; {
      const component = new GetUserDictionaryDataComponent(undefined);
      expect(component.getComponentType()).toBe(Component.LEAF);
    });
  });
  </code></pre>
  
  <p>But It not work correctly. When I try run my test, I get error:</p>
  
  <pre><code>Test suite failed to run
  
      Configuration error:
  
      Could not locate module @/pages/configurations/components/ mapped as:
      /home/user/git/my_project/client/src/pages/configurations/components/.
  
      Please check your configuration for these entries:
      {
        "moduleNameMapper": {
          "/^@\/(.*)$/": "/home/user/git/my_project/client/src/$1"
        },
        "resolver": null
      }
  
      &gt; 1 | import { GetUserDictionaryDataComponent, Component } from '@/pages/configurations/components/';
          | ^
        2 | 
        3 | describe('GetUserDictionaryDataComponent', () =&gt; {
        4 |   it('should get correct type', () =&gt; {
  
        at createNoMappedModuleFoundError (node_modules/@jest/core/node_modules/jest-resolve/build/index.js:472:17)
        at Object.&lt;anonymous&gt; (src/tests/pages/configurations/components/GetUserDictionaryDataComponent.spec.js:1:1)
  </code></pre>
  
  <p>But, I don't uderstand, why I get this error. I checked, path <code>/home/user/git/my_project/client/src/pages/configurations/components/</code> is correct, my classes there.</p>