add: unit and integration testing

This commit is contained in:
odweta
2026-09-07 18:09:36 +02:00
parent 76fde42334
commit 52a25aeaf5
7230 changed files with 561560 additions and 135112 deletions
+20
View File
@@ -0,0 +1,20 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
declare class LeakDetector {
private _isReferenceBeingHeld;
private _shouldGenerateV8HeapSnapshot;
private readonly _finalizationRegistry?;
constructor(value: unknown, opt?: LeakDetectorOptions);
isLeaking(): Promise<boolean>;
private _runGarbageCollector;
}
export default LeakDetector;
declare interface LeakDetectorOptions {
shouldGenerateV8HeapSnapshot: boolean;
}