diff --git a/jest.config.js b/jest.config.js index 704e2532d..67d721fe4 100644 --- a/jest.config.js +++ b/jest.config.js @@ -2,5 +2,9 @@ module.exports = { testEnvironment: 'node', - testMatch: ['/test/spec/**/*.[jt]s?(x)'] + testMatch: ['/test/spec/**/*.[jt]s?(x)'], + watchPlugins: [ + 'jest-watch-typeahead/filename', + 'jest-watch-typeahead/testname' + ] }; diff --git a/package.json b/package.json index a3940b70c..6eb097bee 100644 --- a/package.json +++ b/package.json @@ -66,6 +66,7 @@ "handlebars": "4.1.0", "http-server": "0.11.1", "jest": "24.7.1", + "jest-watch-typeahead": "0.3.0", "jsdoc-parse": "1.2.7", "jsdoc-to-markdown": "1.3.9", "marked": "0.3.19", diff --git a/yarn.lock b/yarn.lock index a69e6a26f..b3a36ac0a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7715,7 +7715,19 @@ jest-validate@^24.7.0: leven "^2.1.0" pretty-format "^24.7.0" -jest-watcher@^24.7.1: +jest-watch-typeahead@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/jest-watch-typeahead/-/jest-watch-typeahead-0.3.0.tgz#f56d9ee17ea71ecbf8253fed213df3185a1584c9" + integrity sha512-+uOtlppt9ysST6k6ZTqsPI0WNz2HLa8bowiZylZoQCQaAVn7XsVmHhZREkz73FhKelrFrpne4hQQjdq42nFEmA== + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.4.1" + jest-watcher "^24.3.0" + slash "^2.0.0" + string-length "^2.0.0" + strip-ansi "^5.0.0" + +jest-watcher@^24.3.0, jest-watcher@^24.7.1: version "24.7.1" resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-24.7.1.tgz#e161363d7f3f4e1ef3d389b7b3a0aad247b673f5" integrity sha512-Wd6TepHLRHVKLNPacEsBwlp9raeBIO+01xrN24Dek4ggTS8HHnOzYSFnvp+6MtkkJ3KfMzy220KTi95e2rRkrw==