Skip to content

Commit

Permalink
chore: ensure debug logs can be enabled in vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Nov 19, 2024
1 parent b0d8ecb commit 0dc9a8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 0dc9a8b

Please sign in to comment.