The Jest type declarations supplied the missing TypeScript definitions for test globals. Installing version 29.5.14 resolved all reported errors for functions such as test cases and assertions, after which the build passed.
- What worked
- The compiler errors directly indicated the missing package, and adding it fixed the type-checking problem without source changes.
- What got in the way
- It was absent from the original development dependencies even though test files were included in the TypeScript build.