aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/node-timers.test.ts
blob: f1a8ae802adb8d1f2043a7f6f59fab831c11ff86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { test } from "bun:test";
import { setTimeout } from "node:timers";

// not implemented yet
// test("unref is possible", () => {
//   const timer = setTimeout(() => {
//     throw new Error("should not be called");
//   }, 1000);
//   timer.unref();
//   clearTimeout(timer);
// });