appstore/karma.conf.js

51 строка
1.3 KiB
JavaScript
Исходник Обычный вид История

module.exports = function (config) {
config.set({
basePath: 'nextcloudappstore/core/static/',
frameworks: ['jasmine'],
mime: { 'text/x-typescript': ['ts','tsx'] },
files: [
{pattern: 'assets/app/**/*Spec.ts', watched: false}
],
exclude: [],
preprocessors: {
'assets/app/**/*.ts': ['webpack']
},
webpackMiddleware: {
noInfo: true,
stats: {
chunks: false,
colors: true
}
},
webpack: {
resolve: {
extensions: ['.js', '.ts', '.tsx']
},
module: {
2018-03-03 15:53:05 +03:00
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader'
}
]
},
stats: {
colors: true,
modules: true,
reasons: true,
errorDetails: true
},
devtool: 'inline-source-map',
2018-03-03 15:53:05 +03:00
mode: 'production'
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Firefox'],
singleRun: false,
concurrency: Infinity,
})
};