jest.config.js 727 B

12345678910111213141516171819202122232425
  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. };