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

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

Open
MickL opened this issue Mar 19, 2024 · 1 comment
Open

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

MickL opened this issue Mar 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@MickL
Copy link

MickL commented Mar 19, 2024

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:  [email protected]
- 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
  1. bun run dev, then open devtools -> Vitest

No logs in tab "Console"

Bildschirmfoto 2024-03-19 um 16 13 11

Logs

No response

Copy link

stackblitz bot commented Mar 19, 2024

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

@danielroe danielroe transferred this issue from nuxt/nuxt Mar 19, 2024
@danielroe danielroe added bug Something isn't working and removed pending triage labels Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants