From 138f291d06009a54fabeac85af63bf303d614ac3 Mon Sep 17 00:00:00 2001 From: Valerie Roske <109114820+vroske-ld@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:42:07 -0700 Subject: [PATCH] fix: add workaround for vitest to run unit tests again (#245) * fix: add workaround for transitive dependency with vitest, to run unit tests again * fix: added comment explaining vitest issue workaround --- vite.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 5e54c58d7..cc9750339 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -31,5 +31,13 @@ export default defineConfig({ statements: 80, exclude: ['**/*.spec.tsx', '**/test/'], }, + /* + * An issue occurs when running all the unit tests with vitest + * See: https://github.com/vitest-dev/vitest/issues/1753 + * TODO: remove the registerNodeLoader workaround when the issue has been resolved + */ + deps: { + registerNodeLoader: false, + }, }, });