Sometimes we may need to make sure our path aliases match what we have configured in Webpack or Typescript

To add an alias to jest add the following to jest.config.js

 moduleNameMapper: {
    '^@src/(.*)': '<rootDir>/src/$1',
  }