19 questions for “Testing with Jasmine & Karma”

Found in 1 field. Select a question to see its full answer.

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