From e7b2b0441ca8dc845178ecf9aebbc3aa3918547b Mon Sep 17 00:00:00 2001 From: Joris Masson Date: Mon, 3 Oct 2022 15:49:09 +0200 Subject: [PATCH] fix: Disable threads for project-sidebar-internal Part of request #27556: Migrate Vite-based packages to Vitest project-sidebar-internal's JS unit tests get stuck from time to time. It's been reproduced locally but it does not trigger always. An issue comment [0] on vitest's github advises to disable threads to mitigate the issue. We are going to try that. [0]: https://github.com/vitest-dev/vitest/issues/2008#issuecomment-1257183963 Change-Id: I4ae7344745b4f4d8ac30b5a21113e461690d0d5e --- lib/frontend/project-sidebar-internal/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/frontend/project-sidebar-internal/package.json b/lib/frontend/project-sidebar-internal/package.json index 6282c0580cc..7af5845c9c5 100644 --- a/lib/frontend/project-sidebar-internal/package.json +++ b/lib/frontend/project-sidebar-internal/package.json @@ -31,6 +31,6 @@ "typecheck": "vue-tsc --noEmit", "build": "vite build", "dev": "vite", - "test": "vitest" + "test": "vitest --no-threads" } }