You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this config:
It works but coverage is on test files only. So 100% :-)).
I need coverage only on .ts files, but I dont know how set preprocessor only to .ts files.
module.exports = function (config) {
config.set({
frameworks: ["jasmine", "webpack"],
reporters: ['progress', 'coverage'],
files: [
{
pattern: `${outputPath}/**/*`, // <-- here
watched: false,
included: false
},
"./test/boot.spec.ts",
"./src/app/**/*.ts", // *.tsx for React Jsx
"./test/**/*.ts" // *.tsx for React Jsx
],
preprocessors: {
// add webpack as preprocessor
'test/**/*.ts': ['webpack', 'coverage']
},
coverageReporter: {
type : 'html',
dir : '../coverage/Pico'
},
webpack: webpackConfig,
browsers: ["Chrome"],
logLevel: config.LOG_ERROR
});
};
I try this:
module.exports = function (config) {
config.set({
frameworks: ["jasmine", "webpack"],
reporters: ['progress', 'coverage'],
files: [
{
pattern: `${outputPath}/**/*`, // <-- here
watched: false,
included: false
},
"./test/boot.spec.ts",
"./src/app/**/*.ts", // *.tsx for React Jsx
"./test/**/*.ts" // *.tsx for React Jsx
],
preprocessors: {
// add webpack as preprocessor
'test/**/*.ts': ['webpack'],
"./src/app/**/*.ts": ['webpack', 'coverage']
},
coverageReporter: {
type : 'html',
dir : '../coverage/Pico'
},
webpack: webpackConfig,
browsers: ["Chrome"],
logLevel: config.LOG_ERROR
});
};
But I got error: ultiple assets emit different content to the same filename on assets, bcs Loaded more than once.
Any Idea?
The text was updated successfully, but these errors were encountered:
I have this config:
It works but coverage is on test files only. So 100% :-)).
I need coverage only on .ts files, but I dont know how set preprocessor only to .ts files.
I try this:
But I got error: ultiple assets emit different content to the same filename on assets, bcs Loaded more than once.
Any Idea?
The text was updated successfully, but these errors were encountered: