question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add global configuration settings

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
dobromir-hristovcommented, Apr 10, 2020

Yep, was thinking about it too. This way people can extend as needed, make plugins etc.

2reactions
dobromir-hristovcommented, Apr 11, 2020

I can take a stab at it

Read more comments on GitHub >

github_iconTop Results From Across the Web

8.1 Customizing Git - Git Configuration
To change that default to something else, you can use the core.editor setting: $ git config --global core.editor emacs. Now, no matter what...
Read more >
Global Configurations | MuleSoft Documentation
Name Type Required Default defaultResponseTimeout string no 10000 defaultTransactionTimeout string no 30000 defaultErrorHandler‑ref string no none
Read more >
Global Configuration Settings
This policy setting allows you to specify Clock discipline and General values for the Windows Time service (W32time) for domain controllers including RODCs....
Read more >
A step-by-step guide to setting up global Git config properties
By using the git config command, we can change the configuration of our Git installation. In general, it is used to set up...
Read more >
Using the Global Configuration Object
Set the global configuration using AWS.Config . Pass extra configuration information to a service object. Setting global configuration with AWS.Config is often ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found