Static GitHub Issues

[2170] nuxt.config.js with ava

prev: Vuetify Data Table Unable to render
next: [Question] Use i18n in nuxt.config

I'm following the steps in the documentation to integrate ava and jsdom for testing and I hit a wall... I have a project with a nutx.config.js configuration file. And it seems you need to do some configuration that on this file that is not properly documented on nuxt testing. When I run yarn run test I got a bunch of

ERROR in app.4a0e11cc86875998f2bc.js from UglifyJs Unexpected token: punc (() [./.nuxt/components/no-ssr.js:8,2][app.4a0e11cc86875998f2bc.js:148,6]

type errors. Anyone knows or can help on the proper way of configure the nutx.config.js to make ava and jsdom? I can help to update the documentation of nuxt if needed.

Thanks :)

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1919">#c1919</a>)</em></sub></div>