闭社主体 forked from https://github.com/tootsuite/mastodon
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.

29 lines
817 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. ],
  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. };