Angular-builders: No tests found on Jest 25

Created on 30 Jan 2020  路  3Comments  路  Source: just-jeb/angular-builders

I'm having this issue with the latest Jest version installed (25.1.0), it was fine when I was using Jest 24.9.0. These are 1 release away from each other Releases

angular-builders/jest version is 8.3.2.

Running:

ng test base-lib

Results in:

  testMatch: /Users/user/Documents/angular-app/projects/base-lib/**/+(*.)+(spec|test).+(ts|js)?(x) - 0 matches
  testPathIgnorePatterns: /node_modules/ - 2796 matches
  testRegex:  - 0 matches

_Originally posted by @jonathanlie in https://github.com/just-jeb/angular-builders/issues/615#issuecomment-580065774_

bug workaround-provided

Most helpful comment

I had the same issue as above, after updating 24.9.0 to 25.1.0

Seems that testMatch should be adjusted as follow: **/*(*.)@(spec|test).[tj]s?(x)

p.s. The related jest discussion can be found here: testMatch on Windows

_Originally posted by @it-ias in https://github.com/just-jeb/angular-builders/issues/615#issuecomment-580207632_

All 3 comments

I had the same issue as above, after updating 24.9.0 to 25.1.0

Seems that testMatch should be adjusted as follow: **/*(*.)@(spec|test).[tj]s?(x)

p.s. The related jest discussion can be found here: testMatch on Windows

_Originally posted by @it-ias in https://github.com/just-jeb/angular-builders/issues/615#issuecomment-580207632_

thank you for the swift response, looking forward to the next release fixing this!

Should be fixed in v9.0.0-beta.3. Please confirm.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mds92 picture Mds92  路  5Comments

enten picture enten  路  10Comments

pkaufi picture pkaufi  路  7Comments

yuwu9145 picture yuwu9145  路  6Comments

mralbobo picture mralbobo  路  9Comments