Skip to content

Ability to avoid a new nuxt instance for each test file #923

Open
@acidjazz

Description

@acidjazz

Describe the feature

I have a project where I've written multiple test files, each with their own setup() inside the top describe()

describe('/api/pen', async () => {
  await setup(setupConfig())
...

When I run these tests it creates a nuxt instance for each test file, demonstrated here: https://github.com/fumeapp/bio/actions/runs/10505024117/job/29101731333#step:12:48

I'm not sure if I have this setup incorrectly, or maybe if there was a way to have all test files share the same nuxt instance?

P.S. I am working on a potential GH action version that will run nuxt in the background and allow a possible setup({host: ...}) version, if i get this working i'll share it.

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

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