nuxt / create-nuxt-app

Create Nuxt.js App in seconds.
MIT License
3.49k stars 430 forks source link

new project: AVA test:e2e failed #526

Open alexiej opened 4 years ago

alexiej commented 4 years ago

Version

nuxt: "^2.0.0" "ava": "^3.0.0", OS: MacOS Catalina 10.15.4 npm: 6.14.4 Node.js v12.16.3

Reproduction link

https://github.com/alexiej/test-nuxtjs-ava-error

Steps to reproduce

npx create-nuxt-app test-ava

Configuration:

OR download project created from the repository:

yarn test

What is expected?

test should work

What is actually happening?

the test doesn't work.

Additional comments?

When I run test e2e I've got the error:

yarn run v1.22.4
warning ../../../../package.json: No license field
$ ava
TAP version 13
[vue-test-utils]: isVueInstance is deprecated and will be removed in the next major version
# specs › Logo › is a Vue instance
ok 1 - specs › Logo › is a Vue instance
Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
# e2e › index › before hook
# Exited because no new tests completed within the last 10000ms of inactivity
not ok 2 - Exited because no new tests completed within the last 10000ms of inactivity

1..2
# tests 2
# pass 1
# fail 2

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

image

felixoi commented 4 years ago

Test seems to wait for const { html } = await nuxt.renderRoute('/', {}) but this never finishes.

Potential fix: https://github.com/avajs/ava/issues/1959#issuecomment-538694773

clarkdo commented 4 years ago

Hi @alexiej , ava and its templates in current mater branch has been updated, so this error will be fixed in next release.