Angular-builders: done is not a function in jest-preset-angular 8.0.0

Created on 17 Mar 2020  路  5Comments  路  Source: just-jeb/angular-builders

Describe the Bug

I get "done is not a function" errors when I pass in a done callback. This is caused by the following bug in jest-preset-angular: https://github.com/thymikee/jest-preset-angular/pull/357

I upgraded my local version of jest-preset-angular, but @angular-builders/jest is still using the 8.0.0 version, which has the issue.

I replaced the node_modules/@angular-builders/jest/node_modules/jest-preset-angular with the new 8.1.2 version and with that version everything works, but I have no "proper" way to override the dependency version.

Could you please upgrade to 8.1.2?

Environment


Libs

  • @angular/core version: 9.0.4
  • @angular-devkit/build-angular version: ~0.900.4
  • @angular-builders/jest version: 9.0.0

For Tooling issues:

  • Node version: v13.8.0
  • Platform: Mac
bug jest

Most helpful comment

Update: it's fixed in @angular-builders/[email protected]

All 5 comments

Sure. Would you like to make a PR?

The fix should be available in the next beta build within a few minutes (I think it should be @angular-builders/[email protected]).

Update: it's fixed in @angular-builders/[email protected]

Awesome! Thanks for the quick action!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muuvmuuv picture muuvmuuv  路  10Comments

pkaufi picture pkaufi  路  7Comments

renatoaraujoc picture renatoaraujoc  路  6Comments

RyanHow picture RyanHow  路  7Comments

bisonfoutu picture bisonfoutu  路  10Comments