Skip to content

App.vue doesnt mount when running tests #745

Open
@joel-wenzel

Description

@joel-wenzel

Environment

[8:43:08 AM] Working directory: C:/code/nuxt-test
[8:43:08 AM] Nuxt project info:


  • Operating System: Windows_NT
  • Node Version: v20.11.0
  • Nuxt Version: 3.9.3
  • CLI Version: 3.10.0
  • Nitro Version: 2.8.1
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools, modules
  • Runtime Modules: @nuxt/test-utils/[email protected]
  • Build Modules: -

Reproduction

https://github.com/joel-wenzel/nuxt-test
Steps to reproduce:

  1. git clone https://github.com/joel-wenzel/nuxt-test
  2. cd nuxt-test
  3. npm ci
  4. npm run test
  5. There are two console logs in app.vue that dont seem to be logged

Describe the bug

It seems like App.vue doesnt mount when using @nuxt/test-utils. This was something nuxt-vitest did do, at least version 0.11.0.
In my case I am also using vuetify and rely on some of the vuetify elements being mounted in the app which unfortunately is not happening.

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions