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.

32 lines
862 B

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