Closed asif-khan17 closed 7 years ago
Does this really work, 'wwwroot/app/**/!(*.spec).ts': ["karma-typescript"]
?
All ".spec.ts" files are excluded from instrumentation by default (see karmaTypescriptConfig.coverageOptions.exclude
) so you shouldn't need to exclude them. Does the coverage folder get generated if you include also the spec files in the preprocessor setting, ie 'wwwroot/app/**/*.ts': ["karma-typescript"]
?
No.. After changing preprocessor settings to 'wwwroot/app/*/.ts': ["karma-typescript"] .. it still not generates coverage folder
Ok, you're also adding all of your project files with included: false
which means you have to load them manually in the browser with Require.js or similar, is that what "karma-test-shim.js" does? It looks like you're mixing frameworks here, which I'm guessing you really don't need since karma-typescript uses CommonJS internally and does all the bundling and module loading automatically for you.
module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', 'karma-typescript'],
};
this is my config file , all the tests are running well but coverage folder is not getting generated p why?