N
Nuxt6mo ago
ParadoX

How can I use my own composables inside a playwright test?

I replaced pinia with a custom composable "useSettings". In my playwright tests, I was able to access Pinia like this
window.__NUXT__?.pinia.myStore
window.__NUXT__?.pinia.myStore
Now when I try to use my composable inside my tests, I am getting the error "useSettings is not defined". How can I import it? 🤔
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server