TypeScript | Testing with TypeScript | Question9

Last Updated :
Discuss
Comments

Which of the following is a valid use case for a test double?

To represent a function or object being replaced in a test.

To replace TypeScript’s type system with mocks.

To execute real implementations during testing.

To write tests without a testing framework.

Share your thoughts in the comments