fix: make console error throw exception (#21)
* fix: make console error throw exception * chore: fix file * refactor: log all arguments to console.error Co-authored-by: Tsvetomir Tsonev <cvetomirconev@gmail.com>
This commit is contained in:
Родитель
7493efd70a
Коммит
4bfff4f232
|
@ -0,0 +1,7 @@
|
|||
const error = window.console.error;
|
||||
|
||||
window.console.error = function (message, ...args) {
|
||||
error(message, ...args); // keep default behaviour
|
||||
throw (message instanceof Error ? message : new Error(message))
|
||||
}
|
||||
|
|
@ -9,6 +9,7 @@ require('zone.js/dist/async-test');
|
|||
require('zone.js/dist/fake-async-test');
|
||||
require('jest-zone-patch');
|
||||
require('./global-mocks');
|
||||
require('./global-overrides');
|
||||
require('./matchers');
|
||||
|
||||
const AngularSnapshotSerializer = require('./snapshot.serializer');
|
||||
|
|
Загрузка…
Ссылка в новой задаче