← Angular learning path
Angular · Module 10 of 10

Testing, building and deploying

Test with Jasmine/Jest, build for production and deploy.

📖 Key ideas

  1. ng test runs unit tests; TestBed sets up components.
  2. End-to-end tests with Playwright or Cypress.
  3. ng build creates optimised files in dist/.
  4. Environments hold settings like apiUrl for dev and prod.
  5. 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