Skip to content
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

Separate assertion library from testing library #4494

Open
kierans opened this issue Aug 24, 2019 · 0 comments
Open

Separate assertion library from testing library #4494

kierans opened this issue Aug 24, 2019 · 0 comments

Comments

@kierans
Copy link

kierans commented Aug 24, 2019

What problem does this feature solve?

Currently @vue/cli-plugin-unit-mocha presupposes that you want to use chai. I personally prefer to use Hamjest, although others may have their own preferences. Can the assertion library be decoupled from using Mocha? Ideally I'd like to see as an option when generating a Vue app the ability to select Mocha and then pick an assertion library.

What does the proposed API look like?

  1. Investigate adding options into generator prompts to select assertion framework (ie: chai, hamjest)
  2. Update file generation to use options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants