Skip to content
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

New runtime mocker is not able to handle submodules #6420

Closed
6 tasks done
dbritto-dev opened this issue Aug 28, 2024 · 1 comment
Closed
6 tasks done

New runtime mocker is not able to handle submodules #6420

dbritto-dev opened this issue Aug 28, 2024 · 1 comment

Comments

@dbritto-dev
Copy link

Describe the bug

vi.mock is not able to handle submodules like @radix-ui/react-select. For instance @radix-ui/react-select end up @radix-ui but @radix-ui/reactselect works

I believe the issue was introduced here -> a48be6ff

Reproduction

https://stackblitz.com/edit/vitejs-vite-zkej29?file=src%2Fbug.test.tsx,vitest.config.ts,vite.config.ts&terminal=dev

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @vitejs/plugin-react: ^4.3.1 => 4.3.1 
    vite: ^5.4.2 => 5.4.2 
    vitest: ^2.0.5 => 2.0.5

Used Package Manager

npm

Validations

@sheremet-va
Copy link
Member

This is fixed in 2.1.0: #6266

@sheremet-va sheremet-va closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants