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 587B

123456789101112131415161718
  1. module.exports = {
  2. testEnvironment: 'jsdom',
  3. testPathIgnorePatterns: ['node_modules', '.next'],
  4. transformIgnorePatterns: ['node_modules/(?!(sucrase|browser-fs-access)/)'],
  5. transform: {
  6. '^.+\\.(ts|tsx|mjs)$': 'babel-jest',
  7. },
  8. modulePaths: ['<rootDir>', 'node_modules'],
  9. testMatch: ['**/__tests__/**/*test.[t]s?(x)'],
  10. watchPlugins: [
  11. 'jest-watch-typeahead/filename',
  12. 'jest-watch-typeahead/testname',
  13. ],
  14. moduleNameMapper: {
  15. '\\.(css|less|sass|scss)$': 'identity-obj-proxy',
  16. '\\.(gif|ttf|eot|svg|png)$': '<rootDir>/test/__mocks__/fileMock.js',
  17. },
  18. }