You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing my vuejs SFC that use naive-ui components using vitest. For some components (for example Data table) I am getting the warning: [Vue warn]: injection "n-config-provider" not found.
How can I avoid this?
I tried providing some stubs for the n-config-provider but unsuccessful. Is there some minimal setup?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I am testing my vuejs SFC that use naive-ui components using vitest. For some components (for example
Data table
) I am getting the warning:[Vue warn]: injection "n-config-provider" not found.
How can I avoid this?
I tried providing some stubs for the
n-config-provider
but unsuccessful. Is there some minimal setup?Waiting for your response. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions