Angular testing fails to compile

Using Angular 11 I’ve built my project with strict types and noImplicitAny set without issue. When I run ng test though, it complains that it cannot find namespace ‘AppleSignInAPI’. In my package.json I’ve added @types/apple-signin-api to the devDependencies.

Why would it understand that namespace during a build, but not during a test?

Source: Angular Questions