TypeScriptTesting & Type Testing in TypeScript

65 items

1

Naive Equals Type Helper

Code Quiz
2

Typing Mock Functions

Flashcard
3

Typing Test Fixtures and Mock Data

Slides / Video
4

Testing Utility and Generic Types

Slides / Video
5

Testing Async Code with Typed Promises

Slides / Video
6

Typing Assertion Libraries and Custom Matchers

Slides / Video
7

Type Coverage Tools

Slides / Video
8

The @ts-expect-error Directive

Slides / Video
9

Type Testing with dtslint & expect-type

Slides / Video
10

Type Testing with tsd

Slides / Video
11

Asserting Types with expectTypeOf

Slides / Video
12

What Type Testing Is

Slides / Video
13

Runtime vs Compile-time Test Verification

Slides / Video
14

Mocking Modules with Type Safety

Slides / Video
15

Typing Mocks with jest.Mocked

Slides / Video
16

Writing Typed Unit Tests

Slides / Video
17

Configuring tsconfig for Test Environments

Slides / Video
18

Setting Up Vitest for TypeScript

Slides / Video
19

Setting Up Jest with ts-jest

Slides / Video
20

Why TypeScript Testing Differs

Slides / Video
21

Type Tests vs Runtime Tests

Quiz
22

Expect/Equal Helper Types

Quiz
23

tsd Type Testing Library

Quiz
24

expect-type Assertions

Quiz
25

Vitest expectTypeOf API

Quiz
26

Exact Type Equality Check

Quiz
27

Assignability vs Exact Equality

Quiz
28

Testing Function Return Types

Quiz
29

Testing Function Parameter Types

Quiz
30

Testing Conditional & Mapped Types

Quiz
31

Typing Mocks with jest.Mocked

Quiz
32

Typing Test Fixtures and Helpers

Quiz
33

@types Packages for Test Frameworks

Quiz
34

Typing Assertion Libraries

Quiz
35

Type-Safe Spies and Partial Mocks

Quiz
36

Testing never and any Behaviors

Quiz
37

dtslint for Declaration Testing

Quiz
38

jest.fn Generic Return Type

Code Quiz
39

Factory Spread Override Order

Code Quiz
40

jest.Mocked Without jest.mock

Code Quiz
41

Type Check Instead of Runtime Test

Code Quiz
42

Typing a Promise-Returning Mock

Code Quiz
43

Exhaustiveness never Assertion

Code Quiz
44

toBe vs toEqual on Objects

Code Quiz
45

Negative Type Test With ts-ignore

Code Quiz
46

Awaiting Async Promise Assertions

Code Quiz
47

Reversed Assignability Check

Code Quiz
48

expectType with tsd Assertions

Code Quiz
49

expectError on a Valid Call

Code Quiz
50

Unused @ts-expect-error Directive

Code Quiz
51

Uncalled expectTypeOf Matcher

Code Quiz
52

ReturnType Given a Value

Code Quiz
53

Type-Level Equality Assertions

Flashcard
54

Typing Custom Matchers/Assertions

Flashcard
55

Typed Spies and jest.Mocked<T>

Flashcard
56

dtslint for Declaration File Testing

Flashcard
57

The tsd Library

Flashcard
58

Typing Test Assertions in Jest/Vitest

Flashcard
59

Type-Safe Test Fixtures and Factories

Flashcard
60

Typing Setup and Teardown Hooks

Flashcard
61

Testing Compile Errors as Expected

Flashcard
62

expect-type Library Assertions

Flashcard
63

Assignability vs Exact Equality

Flashcard
64

Organizing Tests in .test-d.ts Files

Flashcard
65

Runtime vs Type-Level Testing

Flashcard
Slides / VideoIntermediate

Setting Up Vitest for TypeScript

Learn how to add Vitest to a TypeScript project for fast, type-aware unit testing with minimal config.

Slide 1
1 / 6