Skip to content

Commit

Permalink
chore(jest-types): correct return type of shouldRunTestSuite fo… (#9753)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl authored Apr 2, 2020
1 parent d010f0e commit 26951bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Features

### Fixes
- `[@jest/watcher]` Correct return type of `shouldRunTestSuite` for `JestHookEmitter` ([#9753](https://github.com/facebook/jest/pull/9753))

### Chore & Maintenance

Expand Down
4 changes: 3 additions & 1 deletion packages/jest-watcher/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export type JestHookSubscriber = {
export type JestHookEmitter = {
onFileChange: (fs: JestHookExposedFS) => void;
onTestRunComplete: (results: AggregatedResult) => void;
shouldRunTestSuite: (testSuiteInfo: TestSuiteInfo) => Promise<boolean>;
shouldRunTestSuite: (
testSuiteInfo: TestSuiteInfo,
) => Promise<boolean> | boolean;
};

export type UsageData = {
Expand Down

0 comments on commit 26951bd

Please sign in to comment.