All Questions
2 questions
1
vote
0
answers
1k
views
Make shared property reactive in Vue Composition API composable by declaring variable outside of exported function
I am using the composition api plugin for vue2 (https://github.com/vuejs/composition-api) to reuse composables in my app.
I have two components that reuse my modalTrigger.js composable, where I'd like ...
3
votes
1
answer
7k
views
How to mock vue composable functions with jest
I'm using vue2 with composition Api, vuex and apollo client to request a graphql API and I have problems when mocking composable functions with jest
// store-service.ts
export function ...