Skip to content

Commit c8a67df

Browse files
committed
Bump deps
1 parent 27d3d9b commit c8a67df

File tree

4 files changed

+1083
-1687
lines changed

4 files changed

+1083
-1687
lines changed

__tests__/client-hmr.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('client-hmr', () => {
4343
});
4444

4545
it('should warn regarding missing backend options', () => {
46-
spyOn(global.console, 'warn').and.callThrough();
46+
jest.spyOn(global.console, 'warn');
4747
applyClientHMR(i18nMock);
4848
expect(global.console.warn).toHaveBeenCalledWith(
4949
expect.stringContaining('i18next-backend not found'),
@@ -161,7 +161,7 @@ describe('client-hmr', () => {
161161
});
162162

163163
it('should notify that reload resource failed', async () => {
164-
spyOn(global.console, 'error').and.callThrough();
164+
jest.spyOn(global.console, 'error');
165165
i18nMock.options = { backend: {}, ns: ['name-space'] };
166166
i18nMock.language = 'en';
167167
reloadError = 'reload failed';
@@ -178,7 +178,7 @@ describe('client-hmr', () => {
178178
});
179179

180180
it('should ignore changes of none loaded namespace', async () => {
181-
spyOn(global.console, 'log').and.callThrough();
181+
jest.spyOn(global.console, 'log');
182182
i18nMock.options = { backend: {}, ns: ['name-space'] };
183183
i18nMock.language = 'en';
184184

@@ -195,7 +195,7 @@ describe('client-hmr', () => {
195195
});
196196

197197
it('should distinguish containing namespaces names', async () => {
198-
spyOn(global.console, 'log').and.callThrough();
198+
jest.spyOn(global.console, 'log');
199199
i18nMock.options = { backend: {}, ns: ['name-space'] };
200200
i18nMock.language = 'en';
201201

__tests__/server-hmr.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('server-hmr', () => {
8888
});
8989

9090
it('should ignore changes of none loaded namespace', async () => {
91-
spyOn(global.console, 'log').and.callThrough();
91+
jest.spyOn(global.console, 'log');
9292
i18nMock.options = { backend: {}, ns: ['name-space'] };
9393
i18nMock.language = 'en';
9494

@@ -101,7 +101,7 @@ describe('server-hmr', () => {
101101
});
102102

103103
it('should distinguish containing namespaces names', async () => {
104-
spyOn(global.console, 'log').and.callThrough();
104+
jest.spyOn(global.console, 'log');
105105
i18nMock.options = { backend: {}, ns: ['name-space'] };
106106
i18nMock.language = 'en';
107107

@@ -114,7 +114,7 @@ describe('server-hmr', () => {
114114
});
115115

116116
it('should notify on successful change', async () => {
117-
spyOn(global.console, 'log').and.callThrough();
117+
jest.spyOn(global.console, 'log');
118118

119119
whenNativeHMRTriggeredWith(['en/name-space']);
120120

@@ -126,7 +126,7 @@ describe('server-hmr', () => {
126126
it('should notify when reload fails', async () => {
127127
reloadError = 'reload failed';
128128

129-
spyOn(global.console, 'log').and.callThrough();
129+
jest.spyOn(global.console, 'log');
130130

131131
whenNativeHMRTriggeredWith(['en/name-space']);
132132

@@ -188,7 +188,7 @@ describe('server-hmr', () => {
188188
});
189189

190190
it('should ignore changes of none loaded namespace', async () => {
191-
spyOn(global.console, 'log').and.callThrough();
191+
jest.spyOn(global.console, 'log');
192192
i18nMock.options = { backend: {}, ns: ['name-space'] };
193193
i18nMock.language = 'en';
194194

@@ -201,7 +201,7 @@ describe('server-hmr', () => {
201201
});
202202

203203
it('should notify on successful change', async () => {
204-
spyOn(global.console, 'log').and.callThrough();
204+
jest.spyOn(global.console, 'log');
205205

206206
await plugin.callbacks[0]({ changedFiles: ['en/name-space'] });
207207

@@ -213,7 +213,7 @@ describe('server-hmr', () => {
213213
it('should notify when reload fails', async () => {
214214
reloadError = 'reload failed';
215215

216-
spyOn(global.console, 'log').and.callThrough();
216+
jest.spyOn(global.console, 'log');
217217

218218
await plugin.callbacks[0]({ changedFiles: ['en/name-space'] });
219219

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
}
3838
},
3939
"devDependencies": {
40-
"@types/jest": "^25.2.3",
41-
"@types/node": "^13.13.38",
40+
"@types/jest": "^26.0.23",
41+
"@types/node": "^15.12.2",
4242
"auto-changelog": "^2.2.1",
43-
"jest": "^26.6.3",
44-
"prettier": "^2.2.1",
45-
"release-it": "^13.7.1"
43+
"jest": "^27.0.4",
44+
"prettier": "^2.3.1",
45+
"release-it": "^14.9.0"
4646
},
4747
"release-it": {
4848
"git": {

0 commit comments

Comments
 (0)