10 lines
247 B
TypeScript
10 lines
247 B
TypeScript
|
import failOnConsole from 'jest-fail-on-console';
|
||
|
|
||
|
// Fail when console logs something inside a test - use spyOn instead
|
||
|
failOnConsole({
|
||
|
shouldFailOnWarn: true,
|
||
|
shouldFailOnError: true,
|
||
|
shouldFailOnLog: true,
|
||
|
shouldFailOnAssert: true,
|
||
|
});
|