Issue: 3013

Testing module

[issue link]


I’m thinking about creating a module providing some testing configuration. The plugin would work with Jest, allowing to unit test components, vuex stores, plugins… The whole configuration will be already done, and developers would just have to include it.

But, before getting started, I’d like some information :

  1. Is such plugin welcome ? Or do you plan to support testing natively in Nuxt ?
  2. The plugin would provide a testing script, is it possible from a module to extend the Nuxt scripts (And provide nuxt test for exemple) ?

For now, I implemented some testing setup here : https://github.com/antoinerey/nuxt-jest

Edit: The more I think about it, the more I feel like it’d be better to make a vue-cli plugin. What do you think ?

This question is available on Nuxt.js community (#c2610)