Static GitHub Issues

[961] Problems with testing

prev: Nuxt & Clustering via Sticky session
next: can't read property 'split' of undefined

Hello, when I tried to insert the code from the sample (https://nuxtjs.org/guide/development-tools#end-to-end-testing) for testing and run it, I came across this error: 1 failed

Init Nuxt.js tests/pages/index.spec.js:18

17: nuxt = new Nuxt(config)
18: await nuxt.build()
19: server = new nuxt.Server(nuxt)

Rejected promise returned by test

Rejection reason:

[TypeError: nuxt.build is not a function]

Test.<anonymous> (tests/pages/index.spec.js:18:14) step (tests/pages/index.spec.js:18:191) Test.<anonymous> (tests/pages/index.spec.js:18:99) Test._ava2.default.before as fn

How can I fix it?

<!--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/c828">#c828</a>)</em></sub></div>