Skip to content

interopDefault proxy issue with testing #341

Open
@lachieh

Description

@lachieh

Environment

See reproduction.

Reproduction

https://stackblitz.com/edit/jiti-interopdefault-testing?file=src%2Fmain.ts

Describe the bug

In upgrading to v2 for docusaurus, I'm discovering some odd behavior.

It seems that the Proxy implementation for interopDefault may not be entirely working as expected. In the repro link, you can see that the properties are accessible, but only when directly accessing the properties (since that's how Proxies work). The issue is that this is seemingly causing issues with testing.

Additional context

We are tracking the upgrade at facebook/docusaurus#10716

Logs

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions