Skip to content

Commit 24e456a

Browse files
committed
Output debug to stdout.
1 parent 28165d3 commit 24e456a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/syncData.test.ts

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ import { type Db, MongoClient } from 'mongodb'
99
import ms from 'ms'
1010
import { setTimeout } from 'node:timers/promises'
1111
import { describe, expect, test } from 'vitest'
12+
import debug from 'debug'
13+
14+
// Output via console.info (stdout) instead of stderr.
15+
// Without this debug statements are swallowed by vitest.
16+
debug.log = console.info.bind(console)
1217

1318
import { initSync, SyncOptions } from './index.js'
1419

0 commit comments

Comments
 (0)