]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Add hints to resolve unit test failures 23627/head
authorStephan Müller <smueller@suse.com>
Fri, 17 Aug 2018 10:35:55 +0000 (12:35 +0200)
committerStephan Müller <smueller@suse.com>
Fri, 31 Aug 2018 08:55:36 +0000 (10:55 +0200)
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/HACKING.rst

index d7e3cb0f221ea09e14a00008e531965af4c84265..df41408f90689064eff5c9c7623d89a8427043b9 100644 (file)
@@ -72,6 +72,7 @@ To use this plugin you can either install it in your IDE, if supported, or use
 it via the cli.
 
 We added 2 npm scripts to help running prettier commands:
+
 - ``npm run prettier``, will run prettier formatter on all frontend files
 - ``npm run prettier:lint``, will check all frontend files against prettier linter
 
@@ -85,6 +86,14 @@ Create ``unit-test-configuration.ts`` file based on
 Run ``npm run test`` to execute the unit tests via `Jest
 <https://facebook.github.io/jest/>`_.
 
+If you get errors on all tests, it could be because `Jest
+<https://facebook.github.io/jest/>`_ or something else was updated.
+There are a few ways how you can try to resolve this:
+
+- Remove all modules with ``rm -rf dist node_modules`` and run ``npm install``
+  again in order to reinstall them
+- Clear the cache of jest by running ``npx jest --clearCache``
+
 Running End-to-End Tests
 ~~~~~~~~~~~~~~~~~~~~~~~~