TypeScript
Testing & Type Testing in TypeScript
65 lessons in TypeScript
- Naive Equals Type HelperCode Quiz
- Typing Mock FunctionsFlashcard
- Typing Test Fixtures and Mock DataSlides / Video
- Testing Utility and Generic TypesSlides / Video
- Testing Async Code with Typed PromisesSlides / Video
- Typing Assertion Libraries and Custom MatchersSlides / Video
- Type Coverage ToolsSlides / Video
- The @ts-expect-error DirectiveSlides / Video
- Type Testing with dtslint & expect-typeSlides / Video
- Type Testing with tsdSlides / Video
- Asserting Types with expectTypeOfSlides / Video
- What Type Testing IsSlides / Video
- Runtime vs Compile-time Test VerificationSlides / Video
- Mocking Modules with Type SafetySlides / Video
- Typing Mocks with jest.MockedSlides / Video
- Writing Typed Unit TestsSlides / Video
- Configuring tsconfig for Test EnvironmentsSlides / Video
- Setting Up Vitest for TypeScriptSlides / Video
- Setting Up Jest with ts-jestSlides / Video
- Why TypeScript Testing DiffersSlides / Video
- Type Tests vs Runtime TestsQuiz
- dtslint for Declaration TestingQuiz
- Type-Safe Spies and Partial MocksQuiz
- Testing never and any BehaviorsQuiz
- Testing Function Return TypesQuiz
- Assignability vs Exact EqualityQuiz
- Exact Type Equality CheckQuiz
- Vitest expectTypeOf APIQuiz
- expect-type AssertionsQuiz
- tsd Type Testing LibraryQuiz
- Expect/Equal Helper TypesQuiz
- Typing Assertion LibrariesQuiz
- @types Packages for Test FrameworksQuiz
- Typing Test Fixtures and HelpersQuiz
- Typing Mocks with jest.MockedQuiz
- Testing Conditional & Mapped TypesQuiz
- Testing Function Parameter TypesQuiz
- Typing a Promise-Returning MockCode Quiz
- Exhaustiveness never AssertionCode Quiz
- Negative Type Test With ts-ignoreCode Quiz
- Type Check Instead of Runtime TestCode Quiz
- Factory Spread Override OrderCode Quiz
- jest.Mocked Without jest.mockCode Quiz
- jest.fn Generic Return TypeCode Quiz
- toBe vs toEqual on ObjectsCode Quiz
- Awaiting Async Promise AssertionsCode Quiz
- ReturnType Given a ValueCode Quiz
- Uncalled expectTypeOf MatcherCode Quiz
- Reversed Assignability CheckCode Quiz
- expectError on a Valid CallCode Quiz
- expectType with tsd AssertionsCode Quiz
- Unused @ts-expect-error DirectiveCode Quiz
- Typed Spies and jest.Mocked<T>Flashcard
- Organizing Tests in .test-d.ts FilesFlashcard
- dtslint for Declaration File TestingFlashcard
- expect-type Library AssertionsFlashcard
- Type-Safe Test Fixtures and FactoriesFlashcard
- Runtime vs Type-Level TestingFlashcard
- Assignability vs Exact EqualityFlashcard
- The tsd LibraryFlashcard
- Typing Custom Matchers/AssertionsFlashcard
- Typing Setup and Teardown HooksFlashcard
- Typing Test Assertions in Jest/VitestFlashcard
- Type-Level Equality AssertionsFlashcard
- Testing Compile Errors as ExpectedFlashcard