nuxt / test-utils

๐Ÿงช Test utilities for Nuxt
http://nuxt.com/docs/getting-started/testing
MIT License
316 stars 81 forks source link

Question: Vue test-utils vs Nuxt test-utils #296

Closed thomas-beznik closed 3 years ago

thomas-beznik commented 3 years ago

Hello everyone,

I have a few questions about Nuxt test-utils.

My situation:

I'm looking into different options for libraries to test my Nuxt.js project. Ideally, I would like to have something very similar to Vue test-utils, in order to avoid headaches when working on both projects. Nuxt test-utils seems like an interesting option, but I was wondering what are its advantages compared to just using Vue test-utils? Thanks!

danielroe commented 3 years ago

@thomas-beznik Ideally you might want to use both. @nuxt/test-utils isn't meant to replace @vue/test-utils - just to provide Nuxt-specific utilities that might be missing in your testing regime. And we're aware that the documentation needs to be improved (#95) ๐Ÿ™ƒ

thomas-beznik commented 3 years ago

Awesome, thanks for your response! Indeed I had trouble understanding this library due to the lack of documentation; definitely something to look into!

thomas-beznik commented 3 years ago

@danielroe is there information somewhere on how to combine both of these libraries? An example would be very helpful! Thanks ๐Ÿ™