Skip to content

Commit

Permalink
frontend: run tests in ci in single thread
Browse files Browse the repository at this point in the history
CI sometimes still hangs, trying to run without threads

- vitest-dev/vitest#2008
- vitest-dev/vitest#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.
  • Loading branch information
thisconnect committed Apr 29, 2024
1 parent 7f33634 commit dcf222a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontends/web/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default defineConfig(() => {
css: false,
environment: 'jsdom',
globals: true,
pool: 'forks',
setupFiles: './vite.setup-tests.mjs',
},
};
Expand Down

0 comments on commit dcf222a

Please sign in to comment.