karma.conf.js 688 B

12345678910111213141516171819202122232425262728
  1. module.exports = function(config) {
  2. var configuration = {
  3. frameworks: ['jasmine'],
  4. files: [
  5. 'node_modules/angular/angular.js',
  6. 'node_modules/angular-mocks/angular-mocks.js',
  7. 'dist/app.js',
  8. 'tests/filters.js',
  9. 'tests/qrcode.js',
  10. ],
  11. customLaunchers: {
  12. Chromium_ci: {
  13. base: 'Chromium',
  14. flags: ['--no-sandbox'],
  15. },
  16. }
  17. };
  18. if (process.env.GITLAB_CI) {
  19. configuration.browsers = ['Chromium_ci', 'Firefox'];
  20. } else {
  21. configuration.browsers = ['Chromium', 'Firefox'];
  22. }
  23. config.set(configuration);
  24. }