aboutsummaryrefslogtreecommitdiff
path: root/test/js/node/watch/fixtures/persistent.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/node/watch/fixtures/persistent.js')
-rw-r--r--test/js/node/watch/fixtures/persistent.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/js/node/watch/fixtures/persistent.js b/test/js/node/watch/fixtures/persistent.js
new file mode 100644
index 000000000..72a2b6564
--- /dev/null
+++ b/test/js/node/watch/fixtures/persistent.js
@@ -0,0 +1,5 @@
+import fs from "fs";
+fs.watch(import.meta.path, { persistent: false, signal: AbortSignal.timeout(4000) }).on("error", err => {
+ console.error(err.message);
+ process.exit(1);
+});