Files
bun.sh/test/js/node/watch/fixtures/unref.js
Ciro Spaciari 069b42a7cc [feat] fs.watch (#3249)
* initial support

* add types

* fix comment

* fix types

* bigfix up

* more fixes

* fix some encoding support for watch

* fix rename event

* fixup

* fix latin1

* add fs_events, still failing some tests

* fixuup

* remove unecesary check

* readd tests ops

* this is necessary? just testing CI/CD weird errors

* just use dupe here

* cleanup and fix deinit

* fix zig upgrade
2023-06-23 23:24:34 -07:00

8 lines
181 B
JavaScript

import fs from "fs";
fs.watch(import.meta.path, { signal: AbortSignal.timeout(4000) })
.on("error", err => {
console.error(err.message);
process.exit(1);
})
.unref();