ng2-ts-hello icon indicating copy to clipboard operation
ng2-ts-hello copied to clipboard

How to write tests?

Open felippenardi opened this issue 9 years ago • 5 comments

Thanks for the initiative! I'd love to discover a good workflow to do TDD in Angular2 typescript. Can you add an example?

felippenardi avatar May 01 '15 22:05 felippenardi

I've had some success using karma/jasmine/gulp to do TDD w/ TypeScript. Let me know if you'd like to see a boilerplate repo I have, maybe I can modify it and submit a PR.

johnjelinek avatar Jun 03 '15 04:06 johnjelinek

@johnjelinek I'd love to see a boilerplate! Wouldn't ask you to submit a PR—unless you feel like doing it—because I'm just starting learning about it.

Can you show me the boilerplate?

felippenardi avatar Jun 03 '15 23:06 felippenardi

My boilerplate relies on tsc through gulp to transpile the JS to ES5 and karma just tests normal ES5 code. The tests and source are written in typescript though. I'm deciding if it's valuable to have a client-side transpiled version using the latest SystemJS w/ typescript client transpilation.

johnjelinek avatar Jun 08 '15 18:06 johnjelinek

I would be happy to see that boilerplate. Thanks

danh91 avatar Sep 10 '15 11:09 danh91

OK, I'll get it ready to be published. I'll see if I can upgrade the version of ng2 too.

— Sent from Mailbox

On Thu, Sep 10, 2015 at 6:10 AM, Dan [email protected] wrote:

I would be happy to see that boilerplate.

Thanks

Reply to this email directly or view it on GitHub: https://github.com/rkirov/ng2-ts-hello/issues/4#issuecomment-139205123

johnjelinek avatar Sep 10 '15 14:09 johnjelinek