mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
58 lines
1.3 KiB
var webpackConfig = require('./webpack.test');
|
|
|
|
module.exports = function (config) {
|
|
var _config = {
|
|
/**
|
|
* Base path that will be used to resolve all patterns (e.g. files, exclude).
|
|
*/
|
|
basePath: '',
|
|
|
|
frameworks: ['jasmine'],
|
|
|
|
/**
|
|
* Load additional test shim to setup angular2 for testing.
|
|
*/
|
|
files: [
|
|
{ pattern: './app-config/karma-test-shim.js', watched: false }
|
|
],
|
|
|
|
preprocessors: {
|
|
'./app-config/karma-test-shim.js': ['webpack', 'sourcemap'],
|
|
},
|
|
|
|
/**
|
|
* Load the files with webpack and use test configuration for it.
|
|
*/
|
|
webpack: webpackConfig,
|
|
|
|
webpackMiddleware: {
|
|
stats: 'errors-only'
|
|
},
|
|
|
|
webpackServer: {
|
|
noInfo: true
|
|
},
|
|
|
|
/**
|
|
* Leave Jasmine Spec Runner output visible in browser.
|
|
*/
|
|
client: {
|
|
clearContext: false
|
|
},
|
|
|
|
/**
|
|
* Use a mocha style console reporter and html reporter.
|
|
*/
|
|
reporters: ['kjhtml', 'mocha'],
|
|
|
|
|
|
/**
|
|
* Run with chrome to enable debugging.
|
|
*
|
|
* available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
|
*/
|
|
browsers: ['Chrome']
|
|
};
|
|
|
|
config.set(_config);
|
|
};
|