We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3606808 commit 5ee107fCopy full SHA for 5ee107f
__tests__/vite/client-hmr.spec.js
@@ -78,6 +78,19 @@ describe('Vite - client-hmr', () => {
78
});
79
80
81
+ it('should not throw backendConnector options is not available', () => {
82
+ i18nMock.services = {
83
+ ...i18nMock.services,
84
+ backendConnector: { backend: {} },
85
+ };
86
+ i18nMock.language = 'en';
87
+ i18nMock.options = { ns: ['name-space'] };
88
+
89
+ applyClientHMR(i18nMock);
90
91
+ expect(() => whenHotTriggeredWith(['en/name-space'])).not.toThrow();
92
+ });
93
94
it('should trigger reload when translation file changed', async () => {
95
i18nMock.options = { backend: {}, ns: ['name-space'] };
96
i18nMock.language = 'en';
0 commit comments