Skip to content

Incomplete instrumentation for method as class property #258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nil-s-s opened this issue Feb 14, 2025 · 1 comment
Open

Incomplete instrumentation for method as class property #258

nil-s-s opened this issue Feb 14, 2025 · 1 comment

Comments

@nil-s-s
Copy link

nil-s-s commented Feb 14, 2025

Following class is incompletely covered, the code in propertyFunction is not covered, only the assignment:

class Testing {
    method() {
        return 'Hello, World! ' + this.propertyFunction();
    }

    propertyFunction = () => {
        return 'Instance';
    };
}

export { Testing };

This is the resulting report. Line 7 is not covered by instrumentation.

Image

@kwonoj
Copy link
Owner

kwonoj commented Feb 19, 2025

Similar to #247 (comment), I'm open to accept a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants