File size: 580 Bytes
35743bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import process from "node:process";
import fs from "node:fs";

setTimeout(() => {
  const activeHandles = process._getActiveHandles();
  console.log("ACTIVE HANDLES: " + activeHandles.length);
  activeHandles.forEach((handle, i) => {
    console.log(`Handle ${i}:`, handle?.constructor?.name);
    // if it's a timer or socket, let's see more
    if (handle?.constructor?.name === "Timeout") {
      console.log("  Timer wrapper:", handle?._onTimeout?.toString().slice(0, 50));
    }
  });
  process.exit(1);
}, 2000);

await import("./tests/integration/chat-pipeline.test.mjs");