diff --git a/src/testing/matchers/toEmitAnything.ts b/src/testing/matchers/toEmitAnything.ts index 0096caf455d..13d1a061834 100644 --- a/src/testing/matchers/toEmitAnything.ts +++ b/src/testing/matchers/toEmitAnything.ts @@ -8,7 +8,7 @@ export const toEmitAnything: MatcherFunction<[options?: TakeOptions]> = const hint = this.utils.matcherHint("toEmitAnything", "stream", ""); try { - const value = await stream.take(options); + const value = await stream.peek(options); return { pass: true,