Skip to content

Conversation

lzurbriggen
Copy link
Contributor

app.use() takes a plugin and optional arguments, but the test-utils don't support this. I adjusted the API to take either straight plugins (plugins: [Plugin, AnotherPlugin]) or nested arrays to provide those options to app.use:

plugins: [
  Plugin, 
  [PluginWithOptions, 'argument 1', 'another argument']
]

I first tried to use an object instead of a nested array, but that would likely lead to a breaking change because of unreliable type checks.

Copy link
Member

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid!

I will release a new version with this feature soon.

@lmiller1990 lmiller1990 merged commit e5aee88 into vuejs:master Aug 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants