switched to running tests using karma-typescript
This commit is contained in:
parent
8a9a2972ec
commit
bee504d0ba
5 changed files with 10 additions and 13 deletions
|
@ -4,7 +4,7 @@ var webpackConfig = require('./webpack.config');
|
|||
module.exports = function(config) {
|
||||
config.set({
|
||||
basePath: '',
|
||||
frameworks: ['jasmine'],
|
||||
frameworks: ['jasmine', 'karma-typescript'],
|
||||
files: [
|
||||
// CDN resources
|
||||
'node_modules/jquery/dist/jquery.js',
|
||||
|
@ -28,13 +28,10 @@ module.exports = function(config) {
|
|||
'static/lib/**/*.js',
|
||||
|
||||
// Application resources
|
||||
'static/js/quay.module.ts',
|
||||
// 'static/js/**/*.js',
|
||||
'static/js/**/*.ts',
|
||||
|
||||
// Tests
|
||||
'static/test/**/*.js',
|
||||
'static/js/**/*.spec.js',
|
||||
'static/js/**/*.spec.ts',
|
||||
],
|
||||
exclude: [
|
||||
'static/js/build/bundle.js',
|
||||
|
@ -42,8 +39,7 @@ module.exports = function(config) {
|
|||
preprocessors: {
|
||||
'static/lib/ngReact/react.ngReact.min.js': ['webpack'],
|
||||
'static/lib/angular-moment.min.js': ['webpack'],
|
||||
'static/js/quay.module.ts': ['webpack'],
|
||||
'static/js/**/*.spec.ts': ['webpack'],
|
||||
'static/js/**/*.ts': ['karma-typescript'],
|
||||
},
|
||||
webpack: {
|
||||
resolve: webpackConfig.resolve,
|
||||
|
@ -66,7 +62,7 @@ module.exports = function(config) {
|
|||
webpackMiddleware: {
|
||||
stats: 'errors-only'
|
||||
},
|
||||
reporters: ['dots', 'coverage'],
|
||||
reporters: ['dots', 'coverage', 'karma-typescript'],
|
||||
coverageReporter: {
|
||||
dir: 'coverage',
|
||||
type: 'html'
|
||||
|
|
Reference in a new issue