Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

able to override which plugin to use #276

Open
unional opened this issue Sep 15, 2019 · 0 comments
Open

able to override which plugin to use #276

unional opened this issue Sep 15, 2019 · 0 comments
Projects

Comments

@unional
Copy link
Collaborator

unional commented Sep 15, 2019

Plugins can only check if it supports a particular subject by its shape.

Most of the time this should be ok.

But there might be cases that certain plugin falsely claim support of a subject by mistake.

User should be able to specify which plugin to use directly in those cases:

test('...', () => {
  const spec = kd('...')

  // `another-plugin` must be already loaded in `mocktomata.json`
  // this only override the order as there might be another plugin falsely claim support
  // before the one user wants (in this specific case)
  const mock = spec(subject, { plugin: 'another-plugin' })
}
@unional unional added this to To do in 8.0 via automation Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
8.0
  
To do
Development

No branches or pull requests

1 participant