1const path = require('path'); 2 3const roots = ['__mocks__', 'src']; 4 5module.exports = { 6 watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'], 7 projects: [{ 8 testEnvironment: 'node', 9 testRegex: '/__tests__/.*(test|spec)\\.[jt]sx?$', 10 rootDir: path.resolve(__dirname), 11 displayName: require('./package').name, 12 roots, 13 setupFiles: ['<rootDir>/e2e/setup.ts'], 14 clearMocks: true, 15 }, { 16 displayName: require('./package').name + "-types", 17 runner: 'jest-runner-tsd', 18 testRegex: '/__typetests__/.*(test|spec)\\.[jt]sx?$', 19 rootDir: path.resolve(__dirname), 20 roots, 21 globalSetup: '<rootDir>/src/start/server/type-generation/__typetests__/generateFixtures.ts', 22 }] 23}; 24