Skip to content

Add config object #88

Closed
Closed
@eddyerburgh

Description

@eddyerburgh

I think we should add a config object.

We could use it to store mount options, and other options at a later date.

The main use I see right now is to set transition and transition-group Components to be stubbed by default.

This means the global default config would look like this:

console.log(vueTestUtils.config) // {
  stubs: {
    'transition': TransitionStub,
    'transition-group': TransitionGroupStub
  }
}

The options in config would be overwritten by mount options passed to Wrapper.

Having a config would save adding large mount options in tests.

What are peoples thoughts?

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