We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d010f0e commit 26951bdCopy full SHA for 26951bd
CHANGELOG.md
@@ -3,6 +3,7 @@
3
### Features
4
5
### Fixes
6
+- `[@jest/watcher]` Correct return type of `shouldRunTestSuite` for `JestHookEmitter` ([#9753](https://github.com/facebook/jest/pull/9753))
7
8
### Chore & Maintenance
9
packages/jest-watcher/src/types.ts
@@ -36,7 +36,9 @@ export type JestHookSubscriber = {
36
export type JestHookEmitter = {
37
onFileChange: (fs: JestHookExposedFS) => void;
38
onTestRunComplete: (results: AggregatedResult) => void;
39
- shouldRunTestSuite: (testSuiteInfo: TestSuiteInfo) => Promise<boolean>;
+ shouldRunTestSuite: (
40
+ testSuiteInfo: TestSuiteInfo,
41
+ ) => Promise<boolean> | boolean;
42
};
43
44
export type UsageData = {
0 commit comments