Skip to content

Commit

Permalink
chore: 🤖 Skip some debug line's test
Browse files Browse the repository at this point in the history
  • Loading branch information
haozi committed Oct 10, 2024
1 parent 1aea6c2 commit 26059c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,10 @@ const idmp = <T>(

let callStack = ''
const printLogs = (...msg: any[]) => {
/* istanbul ignore */
/* istanbul ignore next */
if (typeof window === 'undefined') return

/* istanbul ignore next */
if (console.groupCollapsed) {
console.groupCollapsed(...msg)
console.log('globalKey:', globalKey)
Expand Down Expand Up @@ -285,8 +286,10 @@ const idmp = <T>(
// arr = arr.filter((o: string) => !o.includes('node_modules'))
const line = arr[idx + offset + 1] || ''
if (line.includes('idmp')) return line
/* istanbul ignore next */
return ''
} catch {
/* istanbul ignore next */
return ''
}
}
Expand Down

0 comments on commit 26059c9

Please sign in to comment.