Skip to content

ERR_UNSUPPORTED_DIR_IMPORT or EISDIR with vitest #2172

Open
@andreialecu

Description

@andreialecu

Describe the bug

It appears that when using vitest via https://analogjs.org/docs/features/testing/vitest the test suite will run into bizarre issues due to the way this library imports @apollo/client/core.

I'm not sure if it's a bug in this library or in vite/vitest. I also opened a bug report on their side:
vitejs/vite#15795

To Reproduce

Repro at: https://stackblitz.com/~/edit/vitest-dev-vitest-djnid1?initialPath=/__vitest__/

Expected behavior

No error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions