React Testing Library: screen.debug() failing the test

Hi there,

In the React Testing course, the very first test which Mosh write, has the following code:

import { it, expect, describe } from 'vitest'
import { render, screen } from '@testing-library/react';
import Greet from '../../src/components/Greet';
import React from 'react';

describe('Greet', () => {
    it('should render Hello with name, when name is provided', () => {
        render(<Greet name="John" />);        

        screen.debug();
    })
})

then he shows the browser for the code being rendered in jsdom.

For him the test cases are passing at this point of time, but for me it is failing and an unable to see the code in browser as he shown.

This is what I am seeing in my screen: