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

Pass several key/value parameters to the mockRouter #60

Open
prodigy7 opened this issue Dec 18, 2023 · 0 comments
Open

Pass several key/value parameters to the mockRouter #60

prodigy7 opened this issue Dec 18, 2023 · 0 comments

Comments

@prodigy7
Copy link

Currently I've following story:

import vProductStart from './vProductStart.vue';
import { mockRouter } from 'storybook-vue3-router'

export default {
  component: vProductStart,
  decorators: [
    mockRouter({
      meta: ['some_meta'],
      params: ['some_param'],
      query: ['some_query']
    })
  ]
};

export const Default = {
  args: {
  }
};

Now i need to pass following parameter (params):

{ "type": "custom", "projectId": "1", "tab": "products", "vProduct": "1" }

But my IDE tells my directly, that this type is not accepted. Somehow the it seems to me, it isn't possible? Could it be?

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

No branches or pull requests

1 participant