Rewrite to handle new file pointers. Switch from vitest to mocha
Summary:
Rewrite to handle new file pointers. Switch from vitest to mocha
Fix tests
Make the tests not hang at the end
Reviewers: #reviewers
Differential Revision: https://hub.sealcode.org/D1444