refactor: throw error only in warnings
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
b0d6a7507a
commit
992b64e6e3
|
@ -5,10 +5,6 @@ beforeEach(() => {
|
|||
vi.spyOn(console, 'warn').mockImplementation((message) => {
|
||||
throw new Error(`Test failed due to console.warn: ${message}`);
|
||||
});
|
||||
|
||||
vi.spyOn(console, 'error').mockImplementation((message) => {
|
||||
throw new Error(`Test failed due to console.error: ${message}`);
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
|
Loading…
Reference in New Issue