-
Notifications
You must be signed in to change notification settings - Fork 15
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
Unit test support #38
Unit test support #38
Conversation
…to feature/20-unit-test-support # Conflicts: # bin/foobarify-scripts.js # yarn.lock
@nddery So apparently, we need to use babel to transpile the dependencies before ava can use them so I'm not done yet I guess! |
Yeah... Not entirely sure how to go about that... https://github.com/avajs/ava/blob/master/docs/recipes/babelrc.md#configuring-babel I feel like we are trying to use Ava in a very unconventional way here... Thoughts @nddery ? |
Okay, just did some testing and the only way that I manage to have it working is by...
IMO this makes having |
mmh.. not sure either.. tried a couple of things on my end but to no avail.. I don't know tbh.. |
…to feature/20-unit-test-support
I will refactor to see if we couldn't use Jest and this technique jestjs/jest#1468 (comment) |
…to feature/20-unit-test-support
…to feature/20-unit-test-support # Conflicts: # bin/foobarify-scripts.js # package.json # yarn.lock
Re: #20
Context: we want to bake in the support for unit testing in the host app, using Ava!
Steps:
yarn add ava -save
to the host appyarn
to the tool appspecs
on the root.js
extension will get picked up by avayarn test
and voila!More:
specs
yarn test -- --watch
(usingwatch
for example)