Skip to content

[Bug]: Mocking of getters/setters on automatically mocked classes does not work #13140

@staplespeter

Description

@staplespeter

Version

28.1.3

Steps to reproduce

Follow the instructions in the guide for automatic mocks and getters/setters.
https://jestjs.io/docs/es6-class-mocks#automatic-mock

Expected behavior

Expect the mock to be created without error

Actual behavior

Error "property does not exist"

Additional context

related to #9675

Currently fixing this issue. Will provide a better bug report in due course.

Environment

Ubuntu 20.04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions