From 19f67fe64ef67db706b9287e7cf3c7799402d880 Mon Sep 17 00:00:00 2001 From: Hannu Lyytikainen Date: Tue, 13 Nov 2018 15:46:19 +0200 Subject: [PATCH] Add a note about translations in tests --- src/util/test-helpers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/test-helpers.js b/src/util/test-helpers.js index 72605de6..005091a4 100644 --- a/src/util/test-helpers.js +++ b/src/util/test-helpers.js @@ -8,6 +8,10 @@ import en from 'react-intl/locale-data/en'; import { BrowserRouter } from 'react-router-dom'; import { Provider } from 'react-redux'; import configureStore from '../store'; + +// In case you have translated the template and have new translations that +// are missing from the en translations fiel, the language for the tests can +// ge changed here so that there are no missing translation keys in tests import messages from '../translations/en.json'; Enzyme.configure({ adapter: new Adapter() });