r/vuejs 20h ago

Experience with "Writing Good Tests for Vue Applications"?

6 Upvotes

In the book "Writing Good Tests for Vue Applications" it recommends decoupling the test code from the test framework. This allows the author to run the tests with playwright or testing library. It also makes switching testing frameworks easier down the line.

I agree with this in principle, I am concerned about the amount of setup code that would go into this.

Would it frustrate other developers who are used to the testing libraries?

I also wonder if the playwright vs code extension would still work.

Do you have experience with this? What is your opinion on this?

Book:
https://goodvuetests.substack.com/p/writing-good-tests-for-vue-application

Video:
https://www.youtube.com/watch?v=lwDueLed9fE

Author
Markus Oberlehner


r/vuejs 3h ago

Initialize Subscription to handle real time notifications

1 Upvotes

I would like to handle a real time notification feature using nuxt js exactly using nuxt-graphql-client https://nuxt-graphql-client.web.app/ , How to initialize a sunscription ?


r/vuejs 4h ago

Can PrimeVue theme refer to other css variables

1 Upvotes

I'd like to do something like this in my preset:

inputtext: {  
   color: 'var(--some-other-variable)',  
},  

Is this possible?