From f42ad66b3add1457630c513bc900511989c3f2f9 Mon Sep 17 00:00:00 2001 From: Kiefer Chang Date: Wed, 29 Jul 2020 21:05:04 +0800 Subject: [PATCH] mgr/dashboard: clear Jest cache before testing Jest seems to not detect removed files correctly. Let's clean the cache before performing frontend unit tests in CI. Signed-off-by: Kiefer Chang --- src/pybind/mgr/dashboard/frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/package.json b/src/pybind/mgr/dashboard/frontend/package.json index 9f79529d648a..48c21d829147 100644 --- a/src/pybind/mgr/dashboard/frontend/package.json +++ b/src/pybind/mgr/dashboard/frontend/package.json @@ -19,7 +19,7 @@ "i18n:merge": "npx i18ntool merge -c i18n.config.json", "i18n:token": "npx i18ntool config token", "test": "jest --watch", - "test:ci": "JEST_SILENT_REPORTER_DOTS=true jest --coverage --reporters jest-silent-reporter", + "test:ci": "jest --clearCache && JEST_SILENT_REPORTER_DOTS=true jest --coverage --reporters jest-silent-reporter", "e2e": "start-test 4200 'cypress open'", "e2e:ci": "start-test 4200 'cypress run -b chrome --headless'", "lint:tslint": "ng lint", -- 2.47.3