Writing typescript modules and testing with Karma -


i struggling find nice way write typescript modules, output in sensible way , test karma wants global instances , doesn't support module loading out of box.

so cannot write module , consume in karma without first wrapping in wepback/browserify etc bloats output quite lot.

i have tried using typescript pre-processor , seemed more writing tests in ts, rather consuming ts files dependencies. tried requirejs karma module reason failed resolve dependencies not work.

so has got workflow works?


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -