shlomiassaf / angular-library-starter

Your last library starter. A complete, @angular grade, library starter
MIT License
44 stars 12 forks source link

Jest don't found test on Windows 10 #15

Closed Crazyht closed 7 years ago

Crazyht commented 7 years ago

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

npm run lib:test don't work on Windows.

In E:\Dev\OpenSources\angular-library-starter-updated
  330 files checked.
  testMatch:  - 330 matches
  testPathIgnorePatterns: \\node_modules\\ - 330 matches
  testRegex: src\/(?!demo).+\/.+\.spec\.ts$ - 0 matches
Pattern: "" - 0 matches

With fresh copy of repo, on windows just run :

npm install
npm run lib:test

Unit tests executed on windows environment

Crazyht commented 7 years ago

I change "testRegex" to src\/(?!demo).+\/.+\\.spec\\.ts$ and it work fine on my Windows 10 and travis.