You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

jest.config.js 619B

12345678910111213141516171819
  1. module.exports = {
  2. roots: ['<rootDir>'],
  3. testEnvironment: 'jsdom',
  4. moduleFileExtensions: ['ts', 'tsx', 'js', 'json', 'jsx'],
  5. testPathIgnorePatterns: ['<rootDir>[/\\\\](node_modules|.next)[/\\\\]'],
  6. transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(ts|tsx)$'],
  7. transform: {
  8. '^.+\\.(ts|tsx)$': 'babel-jest',
  9. },
  10. modulePaths: ['<rootDir>'],
  11. watchPlugins: [
  12. 'jest-watch-typeahead/filename',
  13. 'jest-watch-typeahead/testname',
  14. ],
  15. moduleNameMapper: {
  16. '\\.(css|less|sass|scss)$': 'identity-obj-proxy',
  17. '\\.(gif|ttf|eot|svg|png)$': '<rootDir>/test/__mocks__/fileMock.js',
  18. },
  19. }