1
0

jest.config.js 862 B

1234567891011121314151617181920212223242526272829303132
  1. module.exports = {
  2. 'testEnvironment': 'jsdom',
  3. 'projects': [
  4. '<rootDir>/app/javascript/mastodon',
  5. ],
  6. 'testPathIgnorePatterns': [
  7. '<rootDir>/node_modules/',
  8. '<rootDir>/vendor/',
  9. '<rootDir>/config/',
  10. '<rootDir>/log/',
  11. '<rootDir>/public/',
  12. '<rootDir>/tmp/',
  13. ],
  14. 'setupFiles': [
  15. 'raf/polyfill',
  16. ],
  17. 'setupFilesAfterEnv': [
  18. '<rootDir>/app/javascript/mastodon/test_setup.js',
  19. ],
  20. 'collectCoverageFrom': [
  21. 'app/javascript/mastodon/**/*.js',
  22. '!app/javascript/mastodon/features/emoji/emoji_compressed.js',
  23. '!app/javascript/mastodon/locales/locale-data/*.js',
  24. '!app/javascript/mastodon/service_worker/entry.js',
  25. '!app/javascript/mastodon/test_setup.js',
  26. ],
  27. 'coverageDirectory': '<rootDir>/coverage',
  28. 'moduleDirectories': [
  29. '<rootDir>/node_modules',
  30. '<rootDir>/app/javascript',
  31. ],
  32. };