module.exports = { projects: [ { displayName: 'test', testPathIgnorePatterns: [ 'build', '/node_modules/(?!(jest-test))', ], modulePaths: ['', '/node_modules/'], moduleDirectories: ['src'], setupFiles: ['/test/setupTests.js'], transform: { '^.+\\.tsx?$': 'ts-jest', '^.+\\.js$': 'babel-jest', }, testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], }, { runner: 'jest-runner-eslint', displayName: 'eslint', testMatch: ['/test/**/*.test.js'], }, { runner: 'jest-runner-tslint', displayName: 'tslint', moduleFileExtensions: ['ts', 'tsx'], testMatch: [ '/test/**/*.test.ts', '/test/**/*.test.tsx', ], }, ], }