error

    [jest] The error below may be caused by using the wrong test environment

    The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string. Consider using the "jsdom" test environment. ReferenceError: document is not defined 11 | const handleClick = jest.fn(); 12 | > 13 | const { container, getByText } = render(( | ^ 14 | > testEnvironment: 'jest-environment-jsdom' 하지만 굳이 아래와 같이 설정하지 않아도 잘 돌아가는 경우도 있었는데..