-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NuxtJS/VueJS recipe for ava #2063
Comments
You're missing a bunch of config to make aliases work, ava won't read Nuxt's webpack config: https://github.com/avajs/ava/blob/master/docs/recipes/babel.md#webpack-aliases However, it still won't work even with the documented config. The ava Babel pipeline unfortunately calls babel-plugin-webpack-alias-7 before transforming your source code. The alias plugin is looking for One option might be to disable ava's Babel pipeline entirely and configure it manually. Haven't tried it (I already lost half a day tracking down the ava bug), we ended up just switching to mocha and got aliases working no problem. |
The joy of Node.js-style Will leave this open as it sounds like our Vue recipe could be improved. @sprguillen @aparajita either of you interested in opening a PR with changes? |
I really wanted ava to work, it looks promising. But we lost a full day trying to get this to work and had to give up. mochapack worked immediately. I've been an open source maintainer myself so I admire what you're doing. Keep up the good work! And remember that every hour spent on better documentation is 5 hours less of support. 😁 |
@aparajita @sprguillen https://github.com/dnlup/vue-cli-plugin-unit-ava |
https://github.com/vinayakkulkarni/nuxt-ava-e2e-unit-testing Here's an example of Nuxt & Ava (Unit & E2E tests with Coverage) |
Hello, I'm having an error on my component testing when there is a vue mixin on it
Here is my configuration:
setup.js
ava.config.js
logo.spec.js
Logo.vue
form-mixin.js (Take note, I shortened the actual code but regardless the point is, it's not working. This is a working mixin).
I just want ava or vue test-utils to recognize namespaces either using
~/mixins
or@/mixins
and yes, mixins directory exists and it's inside the root folder similar to components, pages, layouts, test etc.Finally here is my package.json file:
The text was updated successfully, but these errors were encountered: