zulip/frontend_tests/zjsunit
Dinesh 55b2b1c25d node_tests: Refresh templates.js import for every test.
Translation handlebars helpers were not getting changed when we
mock static/js/i18n.ts and then unmock it in a different test.

We mock i18n.ts for every test except node_tests/i18n.js.
So, running any code that calls the registered handlebar
helpers related to translations before running i18n test
will run the helper functions registered with mocked i18n module.
The subsequent tests too would use those functions registered
with mocked i18n module.

This causes the i18n test to fail as we expect the registered
helpers to use actual i18n.ts instead of a mock if we have
code that would call the registered translation helpers in
tests that run before i18n.
2021-10-07 16:32:07 -07:00
..
handlebars.js zjsunit: Remove unnecessary Handlebars wrapper function. 2021-06-14 12:20:56 -07:00
i18n.js i18n: Remove i18next. 2021-04-13 17:41:10 -07:00
index.js node_tests: Refresh templates.js import for every test. 2021-10-07 16:32:07 -07:00
markdown_assert.js eslint: Fix unicorn/no-array-for-each. 2021-01-25 14:53:19 -08:00
mdiff.js eslint: Fix unicorn/no-array-callback-reference. 2021-01-25 14:53:19 -08:00
namespace.js zjsunit: Provide helpful messaging for mocking templates. 2021-07-03 10:15:31 -04:00
real_jquery.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
stub.js zjsunit: Remove with_stub helper. 2021-02-13 06:48:59 -05:00
test.js node tests: Only expose mock_template via run_test. 2021-06-27 23:00:34 -04:00
zblueslip.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
zjquery.js zjquery: Split out zjquery_element.js. 2021-06-12 12:21:44 -04:00
zjquery_element.js zjquery: Tell dev about set_find_results. 2021-07-05 08:36:47 -04:00
zjquery_event.js zjquery: Split out zjquery_element.js. 2021-06-12 12:21:44 -04:00
zpage_params.js settings: Add live update code for realm-level defaults settings. 2021-09-15 09:56:33 -07:00