Testing in JavaScript

Quiz yourself on Jest,Mocha,and other JavaScript testing frameworks.

1. Which company developed the Jest testing framework?
2. Which of the following are JavaScript testing frameworks? (Select all that apply)
3. Unit tests focus on testing individual functions or components in isolation.
4. What does TDD stand for? (full phrase)
5. What is the primary purpose of a mock function in JavaScript testing?
6. Which Jest method runs a function before each individual test in a suite?
7. Which of the following are types of test doubles? (Select all that apply)
8. Cypress is primarily used for writing unit tests.
9. Name a popular assertion library commonly used with Mocha for testing.
10. In Jest, which assertion checks if a value is truthy?
11. How can you handle asynchronous code in Jest tests? (Select all that apply)
12. Integration tests verify interactions between multiple components or modules.
13. What does E2E stand for in the context of testing? (full phrase)
14. Which testing framework is commonly used with React Testing Library for component testing?
15. Which tools are used for end-to-end (E2E) testing in JavaScript? (Select all that apply)
16. A stub function is used to return predefined values to control test behavior.
17. What term describes a test that checks if a function throws an expected error?
18. In Jest and Mocha, what does an 'it' block represent?
19. Which layers are part of the testing pyramid? (Select all that apply)
20. Jest requires an external assertion library to write test assertions.
Answered 0 of 0 — 0 correct