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.

30 lines
857 B

  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. '<rootDir>/app/javascript/themes/',
  13. ],
  14. setupFiles: [
  15. 'raf/polyfill',
  16. ],
  17. setupTestFrameworkScriptFile: '<rootDir>/app/javascript/mastodon/test_setup.js',
  18. collectCoverageFrom: [
  19. 'app/javascript/mastodon/**/*.js',
  20. '!app/javascript/mastodon/features/emoji/emoji_compressed.js',
  21. '!app/javascript/mastodon/locales/locale-data/*.js',
  22. '!app/javascript/mastodon/service_worker/entry.js',
  23. '!app/javascript/mastodon/test_setup.js',
  24. ],
  25. coverageDirectory: '<rootDir>/coverage',
  26. moduleDirectories: [
  27. '<rootDir>/node_modules',
  28. '<rootDir>/app/javascript',
  29. ],
  30. };