All fields

“Testing with Jasmine & Karma” in Information Technology

19 questions across 1 technology.

Information Technology

19 questions in 1 technology

#QuestionTechnologyTopicLevel
1What are Jasmine and Karma, and what role does each play in testing an Angular app? Angular › Testing with Jasmine & KarmaAngularTesting with Jasmine & KarmaBeginner
2How would you test an Angular service that makes HTTP requests, without making real network calls during the test? Angular › Testing with Jasmine & KarmaAngularTesting with Jasmine & KarmaAdvanced
3What is the difference between a unit test and a component test in an Angular app? Angular › Testing with Jasmine & KarmaAngularTesting with Jasmine & KarmaBeginner
4How do you use Angular's TestBed to test a component that depends on a service? Angular › Testing with Jasmine & KarmaAngularTesting with Jasmine & KarmaIntermediate
5How would you test that clicking a button in a component triggers the expected behavior? Angular › Testing with Jasmine & KarmaAngularTesting with Jasmine & KarmaIntermediate
6What is end to end testing and how is it different from the unit tests Angular sets up by default? Angular › End to End Testing with Cypress & PlaywrightAngularEnd to End Testing with Cypress & PlaywrightBeginner
7Why should a team combine end to end tests with unit tests rather than relying on just one type? Angular › End to End Testing with Cypress & PlaywrightAngularEnd to End Testing with Cypress & PlaywrightBeginner
8What is Playwright and how does it compare to Cypress for testing an Angular app? Angular › End to End Testing with Cypress & PlaywrightAngularEnd to End Testing with Cypress & PlaywrightIntermediate
9How would you set up Cypress in an Angular project to write your first end to end test? Angular › End to End Testing with Cypress & PlaywrightAngularEnd to End Testing with Cypress & PlaywrightIntermediate
10How would you mock a backend API response during an end to end test to avoid depending on a real server? Angular › End to End Testing with Cypress & PlaywrightAngularEnd to End Testing with Cypress & PlaywrightAdvanced
11How would you mock a service during testing to isolate a component from its real dependencies? Angular › Services & Dependency InjectionAngularServices & Dependency InjectionIntermediate
12How do you use browser DevTools breakpoints together with Angular source maps to step through your actual TypeScript code? Angular › Angular DevTools & DebuggingAngularAngular DevTools & DebuggingAdvanced
13What tools can you use to check accessibility issues in an Angular app? Angular › Accessibility (a11y) in AngularAngularAccessibility (a11y) in AngularBeginner
14What is dependency injection in Angular, and how does a component receive a service? Angular › Services & Dependency InjectionAngularServices & Dependency InjectionBeginner
15What is the difference between providing a service using useClass and useExisting? Angular › Dependency Injection Providers & Injection TokensAngularDependency Injection Providers & Injection TokensIntermediate
16How would you create a custom schematic to generate a component following your own team's specific conventions? Angular › Angular Schematics & Custom BuildersAngularAngular Schematics & Custom BuildersAdvanced
17How would you set up a continuous deployment pipeline for an Angular project? Angular › Build, Environments & DeploymentAngularBuild, Environments & DeploymentAdvanced
18How do you handle pluralization correctly across different languages in an internationalized Angular app? Angular › Internationalization (i18n) in AngularAngularInternationalization (i18n) in AngularAdvanced
19How would you migrate an existing Zone.js based Angular application toward zoneless change detection safely? Angular › Zoneless Change Detection & Zone.jsAngularZoneless Change Detection & Zone.jsAdvanced