feat(server): lower library scan memory usage (#7939)

* use trie

* update tests

* formatting

* pr feedback

* linting
This commit is contained in:
Mert
2024-03-14 01:52:30 -04:00
committed by GitHub
parent 63d252b603
commit d67cc00e4e
7 changed files with 143 additions and 62 deletions

View File

@@ -56,6 +56,7 @@ export const newStorageRepositoryMock = (reset = true): jest.Mocked<IStorageRepo
readdir: jest.fn(),
stat: jest.fn(),
crawl: jest.fn(),
walk: jest.fn().mockImplementation(async function* () {}),
rename: jest.fn(),
copyFile: jest.fn(),
utimes: jest.fn(),