question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `cli-plugin-unit-ava`

See original GitHub issue

What problem does this feature solve?

AVA test runner.

Add unit-ava in addition to the existing unit-mocha and unit-jest core plugins. unit-ava would be exposed in the same way as jest and mocha support and given as an option for unit testing configuration.

What does the proposed API look like?

The API / implementation would follow the pattern(s) established by unit-jest and unit-mocha.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
LinusBorgcommented, Feb 26, 2018

How is the testing story with .vue files with ava these days?

/ping @eddyerburgh tested ava some time ago and performance of existing solutions to transpile .vue files in ava were disappointing, to say the least.

Generelly I don’t think we want to add every testing framework as a core pluin, just like we won’t add every preprocessor and every compile-to-js language to it (no coffeescript! 😛)

So in order for a PR to be accepted, this proposition would have to:

  1. Provide a great testing experience with Vue, especially .vue files
  2. Gather enough support from the community to make clear using ava with Vue has enough support to add it as a core plugin.

If that doesn’t happen, you can ofg course make it a “normal” plugin to the cli, which means users would simpl have to do this to add ava after the initial vue create setup:

npm i -D vue-cli-plugin-ava
vue invoke ava
0reactions
dnlupcommented, Apr 8, 2019

I am developing a plugin, if anyone would like to try it and give me some feedback here is the repo: https://github.com/dnlup/vue-cli-plugin-unit-ava

Read more comments on GitHub >

github_iconTop Results From Across the Web

@vue/cli-plugin-unit-jest - npm
Start using @vue/cli-plugin-unit-jest in your project by running `npm i @vue/cli-plugin-unit-jest`. There are 58 other projects in the npm ...
Read more >
picocli - a mighty tiny command line interface
Copy and paste it into a file called CommandLine.java , add it to your project, and enjoy! 2.3. Annotation Processor. The picocli-codegen module ......
Read more >
IntelliJ plugin unit test with Gradle project import produce ...
I'm working on unit tests for our project with Gradle functionality. For correct tests, I need to import the Gradle project and get ......
Read more >
Default unit tests are failing · Issue #1879 · vuejs/vue-cli - GitHub
I Create a new project in vue-cli add "Unit Testing" and copy differences in my project. This work for me. Install the package:...
Read more >
vue/cli-plugin-unit-jest
unit -jest plugin for vue-cli ... To do this, we need to add an exception to the transformIgnorePatterns option of jest.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found