diff --git a/.github/workflows/tests-unit.yml b/.github/workflows/tests-unit.yml index 8957be007308..d50dc7efdf27 100644 --- a/.github/workflows/tests-unit.yml +++ b/.github/workflows/tests-unit.yml @@ -26,7 +26,7 @@ jobs: run: yarn task --task compile --start-from=auto - name: Install Playwright Dependencies - run: yarn exec playwright install chromium --with-deps + run: cd code && yarn exec playwright install chromium --with-deps - name: test run: yarn test diff --git a/code/core/src/core-server/server-channel/file-search-channel.test.ts b/code/core/src/core-server/server-channel/file-search-channel.test.ts index a0647d564370..64728b142e88 100644 --- a/code/core/src/core-server/server-channel/file-search-channel.test.ts +++ b/code/core/src/core-server/server-channel/file-search-channel.test.ts @@ -39,7 +39,7 @@ describe('file-search-channel', () => { const searchResultChannelListener = vi.fn(); describe('initFileSearchChannel', async () => { - it('should emit search result event with the search result', { timeout: 5000 }, async () => { + it('should emit search result event with the search result', { timeout: 10000 }, async () => { const mockOptions = {}; const data = { searchQuery: 'es-module' }; @@ -52,7 +52,7 @@ describe('file-search-channel', () => { } satisfies RequestData); await vi.waitFor(() => expect(searchResultChannelListener).toHaveBeenCalled(), { - timeout: 5000, + timeout: 8000, }); expect(searchResultChannelListener).toHaveBeenCalledWith({ @@ -98,7 +98,7 @@ describe('file-search-channel', () => { it( 'should emit search result event with an empty search result', - { timeout: 5000 }, + { timeout: 10000 }, async () => { const mockOptions = {}; const data = { searchQuery: 'no-file-for-search-query' }; @@ -116,7 +116,7 @@ describe('file-search-channel', () => { expect(searchResultChannelListener).toHaveBeenCalled(); }, { - timeout: 5000, + timeout: 8000, } );