Jelajahi Sumber

HUE-9090 [frontend] Don't re-run js tests on static content changes

Johan Ahlen 6 tahun lalu
induk
melakukan
11509af6ed
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      jest.config.js

+ 2 - 1
jest.config.js

@@ -5,5 +5,6 @@ module.exports = {
   testMatch: ['<rootDir>/desktop/core/src/desktop/js/**/*.test.(js|jsx|ts|tsx)'],
   testEnvironment: 'jest-environment-jsdom-fourteen',
   testURL: 'https://www.gethue.com/hue',
-  setupFilesAfterEnv: ['<rootDir>/desktop/core/src/desktop/js/jest/jest.init.js']
+  setupFilesAfterEnv: ['<rootDir>/desktop/core/src/desktop/js/jest/jest.init.js'],
+  watchPathIgnorePatterns: ['<rootDir>/desktop/core/src/desktop/static']
 };