fix: pause between tests to avoid db lock

This commit is contained in:
tomasz-io 2024-10-24 18:01:29 +07:00
parent 91ea00d284
commit 4cb84c11b0

View file

@ -3,6 +3,10 @@ import { testCases } from "./testCases";
describe("llms/Mock", () => {
describe("Autocomplete Filtering Tests", () => {
beforeEach(async () => {
await new Promise((resolve) => setTimeout(resolve, 50));
});
it.each(testCases)("$description", async (testCase) => {
await testAutocompleteFiltering(testCase);
});