This project was created to simulate a problem with karma autowatch and glob matchers
When we configure karma.conf.js
with something like src/app/**/*.js
the autowatch stop reporting the correct results.
karma start
- Verify that you see the
Executed 1 of 1 SUCCESS
message - Go to
registration.component.spec.js
- On line 25 change
ctrl.createAccount()
toctrl.createAccount2()
- You should see a failing test message in the karma report, but you see the same
SUCCESS
message from before
I managed to find out that it's got to do with the glob selector in the files configuration in karma.conf.js
.
- Go to
karma.conf.js
, - Comment line 12 where it says
'src/app/**/*.js'
- Uncomment line 13 where it says
'src/app/**/*.{component,service}.js'
- You should now see the autoWatch works correctly
Something with 'src/app/**/*.js'
breaks the autoWatch behavior