vitest-dev / vitest-dev/vitest

preact of render function not async for use 'pnpx vitest init browser' command choose

Open
#9,374 0 comments 0 reactions 0 assignees View on GitHub

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
Image Image Image

but preact and react some result return

Image
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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.