diff --git a/src/utils/toSuspenseSource.test.ts b/src/utils/toSuspenseSource.test.ts index 56c7e9ed50..b1c52ea93d 100644 --- a/src/utils/toSuspenseSource.test.ts +++ b/src/utils/toSuspenseSource.test.ts @@ -72,7 +72,9 @@ it('throws a promise that resolves when the source emits a value', () => { expect(promise).toBeInstanceOf(Promise); next('test'); - expect(result).toBe('test'); + + // The result came in asynchronously and the original source has ended + expect(result).toBe(undefined); return promise.then(resolved => { expect(resolved).toBe('test');