Skip to content

Instantly share code, notes, and snippets.

@xebu
Created April 30, 2024 12:19
Show Gist options
  • Save xebu/5c9e683dc32aeb1a313cdae4c03e5ddf to your computer and use it in GitHub Desktop.
Save xebu/5c9e683dc32aeb1a313cdae4c03e5ddf to your computer and use it in GitHub Desktop.
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