-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,31 @@ | ||
module.exports = function(config) { | ||
config.set({ | ||
let configuration = { | ||
|
||
frameworks: ["jasmine", "karma-typescript"], | ||
frameworks: ['jasmine', 'karma-typescript'], | ||
|
||
files: [ | ||
{ | ||
pattern: "src/*.ts" | ||
pattern: 'src/*.ts' | ||
} | ||
], | ||
|
||
preprocessors: { | ||
"**/*.ts": ["karma-typescript"] | ||
'**/*.ts': ['karma-typescript'] | ||
}, | ||
|
||
reporters: ["progress", "karma-typescript"], | ||
|
||
// Uncomment below if you want the default html | ||
// coverage report + a summary on the console | ||
/* | ||
karmaTypescriptConfig: { | ||
reports: | ||
{ | ||
"html": "coverage", | ||
"text-summary": "" // destination "" will redirect output to the console | ||
} | ||
}, | ||
//*/ | ||
|
||
// Uncomment below if you want to disable code coverage | ||
// instrumentation during debugging of tests | ||
/* | ||
karmaTypescriptConfig: { | ||
disableCodeCoverageInstrumentation: true | ||
}, | ||
//*/ | ||
|
||
browsers: ["Chrome"] | ||
}); | ||
reporters: ['progress', 'karma-typescript'], | ||
|
||
coverageReporter: { | ||
type: 'lcov', | ||
dir: 'coverage/' | ||
}, | ||
|
||
browsers: ['Chrome'] | ||
}; | ||
|
||
if (process.env.TRAVIS){ | ||
configuration.reporters.push('coverage', 'coveralls'); | ||
} | ||
|
||
config.set(configuration); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters