Update with wiring, bundling, unittests, code coverage

This commit is contained in:
2018-05-22 15:20:32 +02:00
parent 2c7496578b
commit dcb055a1e0
23 changed files with 1897 additions and 638 deletions

View File

@@ -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']
});
};