jest.config.js 817 B

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