From: Kiefer Chang Date: Wed, 29 Jul 2020 13:05:04 +0000 (+0800) Subject: mgr/dashboard: clear Jest cache before testing X-Git-Tag: v16.1.0~1405^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F34918%2Fhead;p=ceph.git 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 --- 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",