discourse/plugins/chat/test/javascripts/unit/services
Joffrey JAFFEUX 1060e4573a
DEV: allows fabricators to use faker (#26555)
The complexity of the situation is that we don't want to load faker into production by default but fabricators and styleguide are available on production.

This is made possible through app/assets/javascripts/discourse/app/lib/load-faker.js which contains a function to ensure faker is loaded asynchronously (loadFaker) and another function to access the loaded faker (getLoadedFaker).

Note 1: this commit also refactors fabricators to have access to context and use faker where possible
Note 2: this commit moves automation to admin bundle

---------

Co-authored-by: David Taylor <david@taylorhq.com>
2024-04-08 21:00:09 +02:00
..
chat-channel-info-route-origin-manager-test.js DEV: Fix typos in a chat service tests (#26239) 2024-03-19 12:07:19 +01:00
chat-drafts-manager-test.js DEV: allows fabricators to use faker (#26555) 2024-04-08 21:00:09 +02:00
chat-drawer-size-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-emoji-picker-manager-test.js DEV: Fix various typos (#24461) 2023-11-20 16:49:49 +01:00
chat-guardian-test.js DEV: allows fabricators to use faker (#26555) 2024-04-08 21:00:09 +02:00
chat-state-manager-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00