Skip to content

Commit 194044f

Browse files
committed
Call garbage collection after each tokenizer test
1 parent 93a8d47 commit 194044f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/tokenizers.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ describe("Tokenizers (model-specific)", () => {
3434
}
3535
});
3636
}
37+
afterAll(() => {
38+
global.gc?.();
39+
});
3740
});
3841
}
3942
// Run custom tests, if they exist

0 commit comments

Comments
 (0)