Skip to content

Pass configOptions to environment setup #11277

Description

@yamachi4416

Clear and concise description of the problem

When @vitest-environment-options is specified in a test file, those options are passed to the custom environment's setup method.

With access to the environmentOptions defined in the config, custom environments would be able to override specific options on a per-test basis, which would make @vitest-environment-options more flexible.

Thank you for the guidance in the pull request🙏

Suggested solution

How about passing configOptions as an additional parameter to setup and setupVM ?

Alternative

No response

Additional context

No response

Validations

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions