Add example use of karma (+ jasmine and chai)

This commit is contained in:
SteveSandersonMS
2016-09-09 10:31:43 +01:00
parent 0bcf4b0700
commit 3d5017404d
8 changed files with 1000 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
module.exports = function(config) {
config.set({
frameworks: ['jasmine', 'chai'],
reporters: ['progress'],
logLevel: config.LOG_INFO,
browsers: ['Chrome'],
autoWatch: true,
autoWatchBatchDelay: 300,
files: [
// Note: you must have already run 'webpack --config webpack.config.vendor.js' for this file to exist
'./wwwroot/dist/vendor.js',
'./ClientApp/tests/*.ts',
'./ClientApp/tests/**/*.ts'
],
preprocessors: {
'./ClientApp/tests/*.ts': ['webpack'],
'./ClientApp/tests/**/*.ts': ['webpack']
},
webpack: require('./webpack.config.js'),
webpackMiddleware: { stats: 'errors-only' }
});
};