e2e tests dont show any console logs in stdout and in vitest/ui
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 437
- Forks
- 120
- Avg merge
- 22h 52m
- Merged PRs (30d)
- 23
Description
Environment
------------------------------
- Operating System: Darwin
- Node Version: v21.6.1
- Nuxt Version: 3.11.0
- CLI Version: 3.10.1
- Nitro Version: 2.9.4
- Package Manager: bun@1.0.29
- Builder: -
- User Config: -
- Runtime Modules: -
- Build Modules: -
------------------------------
Reproduction
https://stackblitz.com/edit/github-krtpdn?file=test%2Fsomething.spec.ts
Describe the bug
Using console.log() within an e2e test doesnt output the test in stdout as well as in devtools "Console" tab. Only seems to work for beforeAll().
Try:
bun run test
-> No logs in console
bun run dev, then open devtools -> Vitest
No logs in tab "Console"
Logs
No response
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
Open test/something.spec.ts from the StackBlitz reproduction and run bun run test; compare with bun run dev and the Vitest UI Console tab. Trace the e2e test logging path and verify that console.log output appears in stdout and the UI, not only from beforeAll().
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bun, nuxt, typescript
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100