mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 00:12:53 +08:00
56 lines
962 B
JavaScript
56 lines
962 B
JavaScript
|
"use strict";
|
||
|
|
||
|
module.exports = config => {
|
||
|
|
||
|
const conf = {
|
||
|
frameworks: [
|
||
|
'jasmine',
|
||
|
'karma-typescript'
|
||
|
],
|
||
|
|
||
|
plugins: [
|
||
|
'karma-typescript',
|
||
|
'karma-jasmine',
|
||
|
'karma-phantomjs-launcher'
|
||
|
],
|
||
|
|
||
|
preprocessors: {
|
||
|
'src/**/*.ts': ['karma-typescript']
|
||
|
},
|
||
|
|
||
|
karmaTypescriptConfig: {
|
||
|
bundlerOptions: {
|
||
|
entrypoints: /\.spec\.ts$/,
|
||
|
transforms: [
|
||
|
require("karma-typescript-es6-transform")()
|
||
|
]
|
||
|
},
|
||
|
compilerOptions: {
|
||
|
lib: ['es2015', 'dom'],
|
||
|
paths: {
|
||
|
"@ionic-native/core": ["./src/@ionic-native/core"]
|
||
|
},
|
||
|
baseUrl: '.'
|
||
|
}
|
||
|
},
|
||
|
|
||
|
files: [
|
||
|
{ pattern: 'src/**/*.ts', included: true, watched: true }
|
||
|
],
|
||
|
|
||
|
reporters: ['progress'],
|
||
|
|
||
|
port: 9876,
|
||
|
colors: true,
|
||
|
logLevel: config.INFO,
|
||
|
autoWatch: true,
|
||
|
browsers: [
|
||
|
'PhantomJS'
|
||
|
],
|
||
|
singleRun: false
|
||
|
};
|
||
|
|
||
|
config.set(conf);
|
||
|
|
||
|
};
|