// jest.config.js
const resolveModule = (name) => `<rootDir>/node_modules/${name}`;

module.exports = {
  verbose: true,
  globals: {
    __testing__: true,
    getJSONFixture: true,
  },
  roots: ['app/javascript'],
  setupFiles: ['./config/jest.setup.js'],
  testRegex: '(/__tests__/.*|(\\.|_|/)(test|spec))\\.(jsx?|tsx?)$',
  testURL: 'http://localhost',
  transform: {
    '^.+\\.jsx?$': 'babel-jest',
    '.(ts|tsx)': 'ts-jest'
  },
  moduleNameMapper: {
    '^moment$': resolveModule('moment'), // fix moment-strftime peerDependency issue
  },
  moduleFileExtensions: [
    'ts',
    'tsx',
    'js',
    'jsx'
  ],
  moduleNameMapper: {
    "\\.(css|scss)$": "identity-obj-proxy"
  },
};

@@ -679,16 +679,64 @@
 j-proxy%22
+,%0A    '%5Ereact$': '%3CrootDir%3E/node_modules/react/'
 %0A  %7D,%0A%7D;

Update jest config to resolve react* from node_modules/*.