Created
April 30, 2024 12:19
-
-
Save xebu/5c9e683dc32aeb1a313cdae4c03e5ddf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(config) { | |
config.set({ | |
frameworks: ['jasmine'], | |
browsers: ['Chrome'], | |
files: [ | |
'node_modules/angular/angular.js', | |
'node_modules/angular-mocks/angular-mocks.js', | |
'src/**/*.ts', | |
'test/**/*.spec.ts' | |
], | |
preprocessors: { | |
'**/*.ts': ['typescript'] | |
}, | |
reporters: ['progress'], | |
port: 9876, | |
colors: true, | |
logLevel: config.LOG_INFO, | |
autoWatch: true, | |
singleRun: false, | |
concurrency: Infinity, | |
typescriptPreprocessor: { | |
options: { | |
sourceMap: false, // (optional) Generates corresponding .map file. | |
target: 'ES5', // (optional) Specify ECMAScript target version | |
module: 'commonjs', // (optional) Specify module code generation | |
noImplicitAny: true, // (optional) Warn on expressions and declarations with an implied 'any' type. | |
noResolve: true, // (optional) Skip resolution and preprocessing. | |
removeComments: true // (optional) Do not emit comments to output. | |
}, | |
transformPath: function(path) { | |
return path.replace(/\.ts$/, '.js'); | |
} | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment