Skip to content

Add global configuration settings #35

Closed
@dobromir-hristov

Description

@dobromir-hristov

Description

We should allow users to register default global components, directives and plugins, instead of passing to each test all the time.

Detailed

In VTU beta we could add a few global configs. Stubs was the main one with a few more later added.

Components, filters and directives were easy to add globally to all components, you just had to do this in your setup file:

Vue.use(Plugin)
Vue.component(GlobalComponent)
// etc

With Vue 3, you now have a Vue App instance, which means you no longer can add global configuration like that. This would lead to allot of repetition in tests, and large codebases could suffer greatly.

We could provide the same api as we have now in MountOptions.global, just at a global level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions