Snapshot mismatch in a test case needs updating.
The test 'can track async information when awaited' fails due to a snapshot mismatch, expecting `undefined` but receiving `[undefined]`. The snapshot needs to be updated to match the current output. The issue appears straightforward but may depend on Node.js version.
React version:Experimental / latest commit
https://github.com/user-attachments/assets/426920b1-7338-4d5d-833e-22e33a7d5c4c
-->
Link to code example: packages/react-server/src/tests/ReactFlightAsyncDebugInfo-test.js
test("can track async information when awaited", async () => {
const result = await someAsyncFunction();
expect(getDebugInfo(result)).toMatchInlineSnapshot( Object { "value": undefined, } );
});
export async function someAsyncFunction() { return { value: [undefined], }; } -->
Object {
"value": [undefined],
}
-->
## The current behavior
The inline snapshot does not match the current output. The test expects `"value": undefined` but receives `"value": [ , ]`.
## The expected behavior
The test should pass and the snapshot should match the current output.
Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!