refactor [P-137]: убраны варнинги
This commit is contained in:
1 parent
bdce08fb73
commit
1a553dfa5e
4 files changed
+101
-3
No files matched your search
+15
-1
@@ -1,4 +1,3 @@
|
||||
import { jest } from '@jest/globals';
|
||||
import * as VueCompilerDOM from '@vue/compiler-dom';
|
||||
import * as VueServerRenderer from '@vue/server-renderer';
|
||||
import * as Vue from 'vue';
|
||||
@@ -32,3 +31,18 @@ jest.mock('axios', () => {
|
||||
})),
|
||||
};
|
||||
});
|
||||
|
||||
/* eslint-disable */
|
||||
const originalWarn = console.warn;
|
||||
beforeEach(() => {
|
||||
jest.spyOn(console, 'warn').mockImplementation((message) => {
|
||||
if (!message.includes('resolveComponent can only be used in render() or setup()')) {
|
||||
originalWarn(message);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
console.warn.mockRestore();
|
||||
});
|
||||
/* eslint-enable */
|
||||
Reference in new issue
Block a user