Update with wiring, bundling, unittests, code coverage
This commit is contained in:
@@ -1,20 +1,28 @@
|
||||
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
frameworks: ["jasmine", "karma-typescript"],
|
||||
files: [
|
||||
{ pattern: "src/**/*.ts" }
|
||||
],
|
||||
karmaTypescriptConfig: {
|
||||
compilerOptions: {
|
||||
module: "commonjs"
|
||||
basePath: './',
|
||||
frameworks: ['jasmine', 'karma-typescript'],
|
||||
files: [{
|
||||
pattern: './src/tests.ts'
|
||||
},
|
||||
tsconfig: "./tsconfig.json",
|
||||
},
|
||||
{
|
||||
pattern: './src/**/*.ts'
|
||||
}
|
||||
],
|
||||
exclude: [
|
||||
'./src/index.ts'
|
||||
],
|
||||
preprocessors: {
|
||||
"**/*.ts": ["karma-typescript"]
|
||||
'**/*.ts': ['karma-typescript']
|
||||
},
|
||||
reporters: ["progress", "karma-typescript"],
|
||||
browsers: ["Chrome"]
|
||||
// optionally, configure the reporter
|
||||
coverageReporter: {
|
||||
type: 'html',
|
||||
dir: 'coverage/'
|
||||
},
|
||||
tsconfig: "./tsconfig-tests.json",
|
||||
//reporters: ['spec', 'progress', 'kjhtml', 'coverage'],
|
||||
reporters: ['coverage', 'kjhtml', 'spec' ],
|
||||
browsers: ['Chrome']
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user