Jest type definitions were installed to provide TypeScript declarations for test globals such as the test function and assertions. This directly resolved the compiler errors shown in the test files.
- What worked
- Installing the package fixed the missing-global diagnostics without requiring source-level declarations or compiler workarounds.
- What got in the way
- It was missing from the original development dependencies even though TypeScript compiled the Jest test files.