karma.conf.js 557 B

123456789101112131415161718192021222324
  1. module.exports = function (config) {
  2. config.set({
  3. basePath: '..',
  4. frameworks: ['mocha'],
  5. reporters: ['mocha'],
  6. preprocessors: { 'test/src/*.ts': ['webpack'] },
  7. files: ['test/src/*.ts'],
  8. webpack: {
  9. resolve: {
  10. extensions: ['', '.ts', '.js']
  11. },
  12. module: {
  13. loaders: [
  14. { test: /\.ts$/, loader: 'ts-loader' },
  15. { test: /\.css$/, loader: 'style-loader!css-loader' },
  16. ]
  17. }
  18. },
  19. port: 9876,
  20. colors: true,
  21. singleRun: true,
  22. logLevel: config.LOG_INFO
  23. });
  24. };