Why is the Karma configuration file exclude option is not working?
问题 I have two spec files in my sample Angular app. The spec files names are src/app/app.component.spec.ts & src/app/app.component-two.spec.ts . I want to run only the tests in file src/app/app.component.spec.ts . So, I added the other file as exclude in the karma.conf.js file (pasted below), still the tests mentioned in the exclude option are being executed. Any help is greatly appreciated. // Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config