In an Angular unit test, what is the main purpose of
TestBed.configureTestingModule({...})?- aTo start the production build process for the application
- bTo set up an Angular testing module with the declarations/imports/providers a test needs✓
- cTo open a real browser window and run end-to-end tests
- dTo bundle the application, minify its output, and measure the final production bundle size after building
Explanation:
TestBed.configureTestingModule() creates a dedicated Angular module scoped to the test, letting you declare the component under test and supply the imports/providers it depends on. It's the standard entry point for Angular unit tests written with Jasmine/Karma.