← Angular learning pathAngular · Module 10 of 10
Testing, building and deploying
Test with Jasmine/Jest, build for production and deploy.
📖 Key ideas
- ng test runs unit tests; TestBed sets up components.
- End-to-end tests with Playwright or Cypress.
- ng build creates optimised files in dist/.
- Environments hold settings like apiUrl for dev and prod.
- Deploy to Firebase Hosting, Netlify or any static server; SSR available.
💡 Real-life example: ng build is a bakery's packing line: the cake is boxed small and neat (minified) before it leaves.
ng testRuns unit tests
TestBedConfigures a test module
ng buildCreates production build
SSRServer-side rendering for speed and SEO