From dcf222a3db6b024894c263f2cfb8a38c268c356e Mon Sep 17 00:00:00 2001 From: thisconnect Date: Mon, 22 Apr 2024 09:20:21 +0200 Subject: [PATCH] frontend: run tests in ci in single thread CI sometimes still hangs, trying to run without threads - https://github.com/vitest-dev/vitest/issues/2008 - https://github.com/vitest-dev/vitest/issues/3077 In earlier vitest versions the optinon was --no-threads, but this changed to --pool=forks in: - https://github.com/vitest-dev/vitest/releases/tag/v1.0.0-beta.0 - https://github.com/vitest-dev/vitest/blob/main/docs/guide/migration.md#pools-are-standardized-4172 Changed vitest config, so that CI and make webtest are both using a single thread. --- frontends/web/vite.config.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/frontends/web/vite.config.mjs b/frontends/web/vite.config.mjs index 1f905f401b..6537844d14 100644 --- a/frontends/web/vite.config.mjs +++ b/frontends/web/vite.config.mjs @@ -24,6 +24,7 @@ export default defineConfig(() => { css: false, environment: 'jsdom', globals: true, + pool: 'forks', setupFiles: './vite.setup-tests.mjs', }, };