nuxt / test-utils

🧪 Test utilities for Nuxt
http://nuxt.com/docs/getting-started/testing
MIT License
322 stars 83 forks source link

e2e tests dont show any console logs in stdout and in vitest/ui #795

Open MickL opened 7 months ago

MickL commented 7 months ago

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:

  1. bun run test -> No logs in console

    Bildschirmfoto 2024-03-19 um 16 15 57
  2. bun run dev, then open devtools -> Vitest

    No logs in tab "Console"

Bildschirmfoto 2024-03-19 um 16 13 11

Logs

No response

stackblitz[bot] commented 7 months ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.