xref: /expo/packages/@expo/env/jest.config.js (revision 6a750d06)
1*6a750d06SEvan Baconconst path = require('path');
2*6a750d06SEvan Bacon
3*6a750d06SEvan Baconmodule.exports = {
4*6a750d06SEvan Bacon  testEnvironment: 'node',
5*6a750d06SEvan Bacon  testRegex: '/__tests__/.*(test|spec)\\.[jt]sx?$',
6*6a750d06SEvan Bacon  watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
7*6a750d06SEvan Bacon  clearMocks: true,
8*6a750d06SEvan Bacon  rootDir: path.resolve(__dirname),
9*6a750d06SEvan Bacon  displayName: require('./package').name,
10*6a750d06SEvan Bacon  roots: ['../cli/__mocks__', 'src'],
11*6a750d06SEvan Bacon  setupFiles: ['<rootDir>/../cli/e2e/setup.ts'],
12*6a750d06SEvan Bacon};
13