fix(front): enable custom logger in tests

merge-requests/2506/merge
Kasper Seweryn 2023-09-10 13:37:34 +02:00
rodzic 46e84f8f9a
commit 51f37afb72
1 zmienionych plików z 0 dodań i 4 usunięć

Wyświetl plik

@ -46,10 +46,6 @@ const FILETYPE_COLOR: Record<string, string> = {
// NOTE: We're pushing all logs to the end of the event loop
const createLoggerFn = (level: LogLevel) => {
// NOTE: We don't want to handle logs ourselves in tests
// eslint-disable-next-line no-console
if (import.meta.env.VITEST) return console[level]
// NOTE: Don't log time and debug in production
if (level === 'time' || level === 'debug') {
if (import.meta.env.PROD) return () => { }