Skip to content

Feature request: respect devtools definition #2310

@webfansplz

Description

@webfansplz

Is your feature request related to a problem? Please describe.

Hi, Team. I'm the creator of devtools-next. I want to use vuejs/test-utils to test the devtools hook. But I see that there seems to be a polyfill of devtools in the test-utils code. I wonder if it seems like we can add an option to support it? This makes sense for users who want to test the devtools hook functionality. I can submit a PR if it is feasible, thank you.

Describe the solution you'd like

export interface MountingOptions<Props, Data = {}>
  extends BaseMountingOptions<Props, Data> {
  /**
   * Specify where to mount the component.
   * Can be a valid CSS selector, or an Element connected to the document.
   * @see https://test-utils.vuejs.org/api/#attachto
   */
  attachTo?: HTMLElement | string

  /**
   * @default: true
   */
  enableDevtoolsPolyfill?: boolean
}

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions