Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. // Karma configuration
  2. // Generated on Mon Jan 16 2017 13:32:24 GMT+0100 (Środkowoeuropejski czas stand.)
  3. var webpackConfig = require('./webpack.config.js');
  4. var webpack = require('webpack');
  5. var path = require('path');
  6.  
  7. module.exports = function (config) {
  8. config.set({
  9. basePath: '',
  10. frameworks: ['mocha', 'chai', 'sinon', 'fixture'],
  11. files: [
  12. 'spec/**/*.spec.ts',
  13. 'spec/fixtures/**/*.html',
  14. ],
  15. exclude: [],
  16. webpack: {
  17. module: webpackConfig.module,
  18. resolve: webpackConfig.resolve,
  19. plugins: [
  20. new webpack.ProvidePlugin({
  21. $: "jquery",
  22. jQuery: "jquery",
  23. "window.jQuery": "jquery",
  24. Tether: 'tether',
  25. "window.Tether": 'tether'
  26. })
  27. ],
  28. },
  29. preprocessors: {
  30. "spec/**/*.ts": ['webpack'],
  31. 'spec/**/*.html': ['html2js'],
  32. 'spec/**/*.json': ['json_fixtures']
  33. },
  34. reporters: ['progress'],
  35. port: 9876,
  36. colors: true,
  37. logLevel: config.LOG_INFO,
  38. autoWatch: false,
  39. // browsers: ['Chrome'],
  40. browsers: ['PhantomJS'],
  41. singleRun: true,
  42. concurrency: Infinity
  43. })
  44. };
  45.  
  46. "devDependencies": {
  47. "@types/chai": "^3.4.34",
  48. "@types/jquery": "^2.0.34",
  49. "@types/karma-fixture": "^0.2.2",
  50. "@types/mocha": "^2.2.37",
  51. "@types/raty": "^2.7.26",
  52. "@types/sinon": "^1.16.34",
  53. "chai": "^3.5.0",
  54. "css-loader": "^0.26.1",
  55. "extract-text-webpack-plugin": "^2.0.0-beta.4",
  56. "file-loader": "^0.9.0",
  57. "karma": "^1.4.0",
  58. "karma-chai": "^0.1.0",
  59. "karma-chrome-launcher": "^2.0.0",
  60. "karma-fixture": "^0.2.6",
  61. "karma-html2js-preprocessor": "^1.1.0",
  62. "karma-json-fixtures-preprocessor": "0.0.6",
  63. "karma-mocha": "^1.3.0",
  64. "karma-mocha-reporter": "^2.2.1",
  65. "karma-phantomjs-launcher": "^1.0.2",
  66. "karma-sinon": "^1.0.5",
  67. "karma-typescript": "^2.1.6",
  68. "karma-typescript-preprocessor2": "^1.2.1",
  69. "karma-webpack": "^2.0.1",
  70. "less": "^2.7.2",
  71. "mocha": "^3.2.0",
  72. "node-sass": "^4.0.0",
  73. "phantomjs-prebuilt": "^2.1.14",
  74. "sass-loader": "^4.0.2",
  75. "sinon": "^1.17.7",
  76. "style-loader": "^0.13.1",
  77. "ts-loader": "^1.2.2",
  78. "typescript": "^2.0.10",
  79. "url-loader": "^0.5.7",
  80. "webpack": "^2.2.0-rc.6"
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement