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

react-ts template use useParams will test error #1163

Closed
6 tasks done
spencer17x opened this issue Apr 18, 2022 · 1 comment
Closed
6 tasks done

react-ts template use useParams will test error #1163

spencer17x opened this issue Apr 18, 2022 · 1 comment

Comments

@spencer17x
Copy link

Describe the bug

Test snapshots will report an error when use Params appears on a page component.

Reproduction

https://github.com/Spencer17x/vitest-demo.git

System Info

System:
    OS: macOS 12.3.1
    CPU: (8) x64 Apple M1
    Memory: 27.79 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.16.1 - ~/.nvm/versions/node/v14.16.1/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 8.3.2 - ~/.nvm/versions/node/v14.16.1/bin/npm
  Browsers:
    Chrome: 100.0.4896.60
    Firefox: 99.0
    Safari: 15.4
  npmPackages:
    @vitejs/plugin-react: ^1.3.0 => 1.3.1
    vite: ^2.9.2 => 2.9.5
    vitest: ^0.9.3 => 0.9.3

Used Package Manager

pnpm

Validations

@spencer17x
Copy link
Author

To be sure, this is not vitest's problem, but the routing single test logic is not written correctly.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant