diff --git a/src/debug.ts b/src/debug.ts index 00bc129..c496e36 100644 --- a/src/debug.ts +++ b/src/debug.ts @@ -2,3 +2,7 @@ import createDebug from 'debug' export const debug = createDebug('vite-tsconfig-paths') export const debugResolve = createDebug('vite-tsconfig-paths:resolve') + +if (process.env.TEST) { + createDebug.log = console.log.bind(console) +}