I'm trying to do testing integration with nuxt.js by following the guide/documentation on nuxt website. I also had a look in the example with-ava
directory. But it seems to be using 0.9.x
package.
The error after running the yarn test
is:
Promise { <pending> }
1 failed
Init Nuxt.js
/Users/piyushchauhan/Documents/jirnexu/hello/test/index.test.js:19
18: console.log(nuxt)
19: await nuxt.build()
20: server = new nuxt.Server(nuxt)
Rejected promise returned by test
Rejection reason:
[TypeError: nuxt.build is not a function]
Test.<anonymous> (test/index.test.js:19:14)
step (test/index.test.js:18:191)
Test.<anonymous> (test/index.test.js:18:99)
Test._ava2.default.before [as fn] (test/index.test.js:11:1)
error Command failed with exit code 1.
Are the methods like build
and Server
, renderRoute
got removed from Nuxt
?