vitest-dev / vitest-dev/vitest
preact of render function not async for use 'pnpx vitest init browser' command choose
Open
Nobody has claimed this yet.
pending triage
- Dominant language
- TypeScript
- Stars
- 17.1k
- Forks
- 2k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 94
Description
Describe the bug
but preact and react some result return
Reproduction
https://github.com/WuMingDao/vitest
System Info
System:
OS: Linux 6.6 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
CPU: (16) x64 AMD Ryzen 7 8845H w/ Radeon 780M Graphics
Memory: 3.59 GB / 7.40 GB
Container: Yes
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 24.11.1 - /home/wumingdao/.nvm/versions/node/v24.11.1/bin/node
npm: 11.6.2 - /home/wumingdao/.nvm/versions/node/v24.11.1/bin/npm
pnpm: 10.26.2 - /home/wumingdao/.local/share/pnpm/pnpm
bun: 1.3.2 - /home/wumingdao/.bun/bin/bun
npmPackages:
@vitest/browser-playwright: ^4.0.0-beta.17 => 4.0.16
playwright: ^1.56.0 => 1.57.0
vitest: ^4.0.0-beta.17 => 4.0.16
vitest-browser-solid: ^1.0.1 => 1.0.1
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked reproduction at https://github.com/WuMingDao/vitest and run pnpx vitest init browser using the reported setup. Compare the generated Preact and React behavior shown in the report, then verify that the render function has the expected async behavior in both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- playwright, react
- Domain
- frontend, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100