DEV Community

loading...

Discussion on: Angular v9 & Universal: SSR and prerendering out of the box!

Collapse
jwp profile image
John Peters

Thanks for article Sam. Kind-of funny how SSR; which was the only way (for 20 years or more e.g. CGI, ASP.NET, MVC etc.); faded away around the time of AngularJS, Angular, Vue and React. Alas we see it back again in this article.

Do you see SSR as having a better footprint for testing?

Collapse
samvloeberghs profile image
Sam Vloeberghs Author

Hi, can you elaborate a bit on "footprint for testing"? Not sure what you mean.. Thanks alot!

Collapse
jwp profile image
John Peters

Jasmine testing does not really do unit testing because all outbound HTML requests must be mocked, that bypasses a lot of the ability to perform a natural test on any component in my opinion.

With server side rendering each request is easily able to be tested using http requests only, which I would think is a lot better than Jasmine trying to do component testing.

Forem Open with the Forem app