jest.config.js 740 B

1234567891011121314151617181920212223
  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. setupFilesAfterEnv: ['<rootDir>/app/javascript/mastodon/test_setup.js'],
  13. collectCoverageFrom: [
  14. 'app/javascript/mastodon/**/*.{js,jsx,ts,tsx}',
  15. '!app/javascript/mastodon/features/emoji/emoji_compressed.js',
  16. '!app/javascript/mastodon/service_worker/entry.js',
  17. '!app/javascript/mastodon/test_setup.js',
  18. ],
  19. coverageDirectory: '<rootDir>/coverage',
  20. moduleDirectories: ['<rootDir>/node_modules', '<rootDir>/app/javascript'],
  21. };
  22. module.exports = config;