kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
fix(front): enable custom logger in tests
rodzic
46e84f8f9a
commit
51f37afb72
|
@ -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 () => { }
|
||||
|
|
Ładowanie…
Reference in New Issue