Skip to content
Snippets Groups Projects
jest.config.js 478 B
Newer Older
  • Learn to ignore specific revisions
  • James Long's avatar
    James Long committed
    const isReactNative = process.env.REACT_APP_IS_REACT_NATIVE;
    
    module.exports = {
      moduleFileExtensions: ['testing.js', 'electron.js']
        .concat(isReactNative ? ['ios.js', 'mobile.js'] : [])
    
        .concat(['mjs', 'js', 'ts', 'json']),
    
    James Long's avatar
    James Long committed
      setupFilesAfterEnv: ['<rootDir>/src/mocks/setup.js'],
      testEnvironment: 'node',
      testPathIgnorePatterns: ['/node_modules/', '/lib/', 'index.web.test.js'],
      transformIgnorePatterns: ['__mocks__'],
      globals: {
        __TESTING__: true
      }
    };