DEV Community

Discussion on: How to Setup Jest Testing In Nuxt Js Project

Collapse
 
stalker3343 profile image
Artem

Hello. Thank you for the guide, it helped me a lot. During set up the testing, I found that nuxt is trying to build components and pages while preparing the store. You need add "ignore" property in finalConfig

const finalConfig = Object.assign({}, nuxtConfig, resetConfig, {
server: { port: constants.port },
buildDir: constants.buildDir,
ignore: ["/components//", "/layouts//", "/pages//*"]
})