create-nuxt-app
create-nuxt-app copied to clipboard
new project: AVA test:e2e failed
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:
- Project name: test-ava
- Project description: test-ava
- Author name: test-ava
- Choose programming language: JavaScript
- Choose the package manager: yarn
- Choose UI framework: Element
- Choose custom server framework: Express
- Choose Nuxt.js modules: Axios, Progressive Web App (PWA) Support
- Choose linting tools: <NONE>
- Choose test framework: AVA
- Choose rendering mode: Universal (SSR)
- Choose development tools: jsconfig.json (Recommended for VS Code)
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.
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
Hi @alexiej , ava and its templates in current mater branch has been updated, so this error will be fixed in next release.