jest.config.js 592 B

1234567891011
  1. module.exports = {
  2. moduleFileExtensions: ['js', 'jsx'],
  3. moduleDirectories: ['node_modules', 'desktop/core/src/desktop/js'],
  4. modulePaths: ['desktop/core/src/desktop/js'],
  5. testMatch: ['<rootDir>/desktop/core/src/desktop/js/**/*.test.(js|jsx|ts|tsx)'],
  6. testEnvironment: 'jest-environment-jsdom-fourteen',
  7. testURL: 'https://www.gethue.com/hue',
  8. setupFilesAfterEnv: ['<rootDir>/desktop/core/src/desktop/js/jest/jest.init.js'],
  9. watchPathIgnorePatterns: ['<rootDir>/desktop/core/src/desktop/static'],
  10. collectCoverageFrom: ['<rootDir>/desktop/core/src/desktop/js/**/*.{js,jsx}']
  11. };