mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-25 19:17:30 +00:00
Add example use of karma (+ jasmine and chai)
This commit is contained in:
26
templates/Angular2Spa/karma.conf.js
Normal file
26
templates/Angular2Spa/karma.conf.js
Normal 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' }
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user