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.

25 lines
816 B

  1. /** @type {import('jest').Config} */
  2. const config = {
  3. testEnvironment: 'jsdom',
  4. testPathIgnorePatterns: [
  5. '<rootDir>/node_modules/',
  6. '<rootDir>/vendor/',
  7. '<rootDir>/config/',
  8. '<rootDir>/log/',
  9. '<rootDir>/public/',
  10. '<rootDir>/tmp/',
  11. ],
  12. setupFiles: ['raf/polyfill'],
  13. setupFilesAfterEnv: ['<rootDir>/app/javascript/mastodon/test_setup.js'],
  14. collectCoverageFrom: [
  15. 'app/javascript/mastodon/**/*.js',
  16. '!app/javascript/mastodon/features/emoji/emoji_compressed.js',
  17. '!app/javascript/mastodon/locales/locale-data/*.js',
  18. '!app/javascript/mastodon/service_worker/entry.js',
  19. '!app/javascript/mastodon/test_setup.js',
  20. ],
  21. coverageDirectory: '<rootDir>/coverage',
  22. moduleDirectories: ['<rootDir>/node_modules', '<rootDir>/app/javascript'],
  23. };
  24. module.exports = config;