Skip to content

Commit

Permalink
ci: add delay to beforeAll hook in fts.spec.ts test file
Browse files Browse the repository at this point in the history
Added a delay function call in the beforeAll hook in the `fts.spec.ts` file to ensure preconditions are met before test execution. This delay is particularly important in cases where asynchronous setup operations have to be completed before the tests run.
  • Loading branch information
gsi-alejandro authored and mcs-alejandro committed Jan 23, 2024
1 parent 9f41142 commit d4cc654
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions __test__/fts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { searchQuery, SearchQuery } from '../src';
import { delay } from './testData';

beforeAll(async () => {
await delay(15000);
});

test('fts match results', async () => {
const result = await searchQuery('hotels', SearchQuery.match('Gillingham'), { limit: 5 });
Expand Down

0 comments on commit d4cc654

Please sign in to comment.