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

Plugin's config(): { test: { browser: { name } } } should be optional or omitted #7017

Closed
6 tasks done
unional opened this issue Dec 4, 2024 · 0 comments · Fixed by #6975
Closed
6 tasks done

Plugin's config(): { test: { browser: { name } } } should be optional or omitted #7017

unional opened this issue Dec 4, 2024 · 0 comments · Fixed by #6975

Comments

@unional
Copy link

unional commented Dec 4, 2024

Describe the bug

When implementing a plugin for browser mode, the plugin should not required to pick a provider nor the name (the browser) for the consumer.

Maybe the plugin shouldn't even have the capability to do so.

Reproduction

export function myPlugin() {
  return {
    config() {
      return {
        test: {
          browser: {
             name: // ...should be optional or even not allowed
             commands: { ... }
          }
        }
      } satisfies Plugin
    }
  }
}

System Info

n/a

Used Package Manager

pnpm

Validations

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

Successfully merging a pull request may close this issue.

1 participant