Skip to content

Commit 808a561

Browse files
committedJan 11, 2024
Change recursive watch mode test detection to be non-persistent
Otherwise, on Linux, it seems the abort signal is disregarded.
1 parent 70a6e25 commit 808a561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/watcher.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const END_MESSAGE = chalk.gray('Type `r` and press enter to rerun tests\nType `u
2020

2121
export function available(projectDir) {
2222
try {
23-
fs.watch(projectDir, {recursive: true, signal: AbortSignal.abort()});
23+
fs.watch(projectDir, {persistent: false, recursive: true, signal: AbortSignal.abort()});
2424
} catch (error) {
2525
if (error.code === 'ERR_FEATURE_UNAVAILABLE_ON_PLATFORM') {
2626
return false;

0 commit comments

Comments
 (0)
Please sign in to comment.