From 531653fe4f9062c8169dd1e36f562757495c4ed9 Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Fri, 24 Jan 2025 15:12:45 -0700 Subject: [PATCH] Update toEmitAnything to use peek instead of take --- src/testing/matchers/toEmitAnything.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,