Static GitHub Issues

[784] nuxt.js version 0.10.x problems with ava testing

prev: How to write nested layout?
next: Example Starter for using zeit's micro

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 ?

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