karma.conf.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. module.exports = function (config) {
  2. 'use strict';
  3. config.set({
  4. basePath: '../../',
  5. captureTimeout: 3e5,
  6. browserNoActivityTimeout: 3e5,
  7. browserDisconnectTimeout: 3e5,
  8. browserDisconnectTolerance: 3,
  9. concurrency: 1,
  10. urlRoot: '/karma',
  11. frameworks: ['mocha', 'chai', 'sinon'],
  12. files: [
  13. '!./**/*.d.ts',
  14. './dist/preview release/earcut.min.js',
  15. './Tools/DevLoader/BabylonLoader.js',
  16. './tests/validation/index.css',
  17. './tests/validation/integration.js',
  18. './favicon.ico',
  19. { pattern: 'dist/preview release/**/*.js', watched: false, included: false, served: true },
  20. { pattern: 'dist/preview release/**/*.wasm', watched: false, included: false, served: true },
  21. { pattern: 'assets/**/*', watched: false, included: false, served: true },
  22. { pattern: 'tests/**/*', watched: false, included: false, served: true },
  23. { pattern: 'Playground/scenes/**/*', watched: false, included: false, served: true },
  24. { pattern: 'Playground/textures/**/*', watched: false, included: false, served: true },
  25. { pattern: 'Playground/sounds/**/*', watched: false, included: false, served: true },
  26. { pattern: 'Tools/Config/config.json', watched: false, included: false, served: true },
  27. ],
  28. proxies: {
  29. '/': '/base/'
  30. },
  31. port: 3000,
  32. colors: true,
  33. autoWatch: false,
  34. singleRun: false,
  35. // level of logging
  36. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  37. logLevel: config.LOG_INFO,
  38. browsers: ['Chrome']
  39. });
  40. };