Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Lint fixes
  • Loading branch information
robhogan committed Apr 15, 2022
commit 04c6eb34ff037e9259d48cc6acc591dcc01a9f14
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import isWatchmanInstalled from '../isWatchmanInstalled';
import {execFile} from 'child_process';
import isWatchmanInstalled from '../isWatchmanInstalled';

jest.mock('child_process');

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-haste-map/src/lib/isWatchmanInstalled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import {execFile} from 'child_process';
import {promisify} from 'util';

export default async function isWatchmanInstalled() {
export default async function isWatchmanInstalled(): Promise<boolean> {
try {
await promisify(execFile)('watchman', ['--version']);
return true;
Expand Down