I had the same issue just now and for me it worked to import the BrowserAnimationsModule in the test file imports as described by koekaap - in my case also with the provideAnimationsAsync() provider used in the app.config.ts file.