-
Notifications
You must be signed in to change notification settings - Fork 6
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
starter #1
Comments
Sorry, but I have been extremely busy lately. I have added a minimal usage example, but the implementation and readme both need a bit of polishing. I am available for questions, but I hope this is enough to get you started. Thank you! |
@thrandre, i very very appreciate u reply me & i also appreciate u present an example, now i just have one more question about the functions of ava-webpack. In github project naming "angular2-webpack-starter", i find out Karma do a magic thing, when we run unit testing on typescript file, Karma will use webpack to transpile typescript, then Karma will test the result which webpack given !!! ( javascript file in memory, because we actually dont see any javascript file after transpiling by webapck) but i dont want to use Karma for some reason, "angular2-webpack-starter" use karma-webpack, so it can do the magic i stated above. so ... does ava-webpack also have the function i want ? |
No worries! Firstly - You need to be aware that the inner workings of AVA and Karma are quite different. AVA runs your tests in Node while Karma require a browser (PhantomJS is often used for headless testing). Transpiling works pretty much the same in both cases, but keep in mind that webpack was initially created as a module bundler for the browser. Karma - being a more mature test runner - has better support for preprocessing than AVA currently has. As for how
Keep in mind that there is absolutely no sophistication behind this. This project is intended as a hackish solution to get If you are determined to run your tests in Node, but not necessarily with the use of AVA, you should consider Mocha and To answer your question: Yes, |
@thrandre |
Hi, @thrandre i still fail to integrate ava-webpack with "angular2-webpack-starter", |
like angular2-webpack-starter
could u please give a example how to use AVA with Webpack?
The text was updated successfully, but these errors were encountered: