2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 02:02:14 +00:00
vinyldns/modules/portal/karma.conf.js
Emerle, Ryan c3d4e16da4
Updates
- Fix issues with `SSHFP` record type
- Add `sbt.sh` helper script
- Update configuration file (`application.conf`) for consistency
- Update documentation
2021-12-03 12:16:21 -05:00

81 lines
2.0 KiB
JavaScript

// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
const puppeteer = require('puppeteer');
process.env.CHROME_BIN = puppeteer.executablePath();
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: 'public/',
// testing framework to use (jasmine/mocha/qunit/...)
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: [
'js/jquery.min.js',
'js/bootstrap.min.js',
'js/angular.min.js',
'js/moment.min.js',
'js/ui.js',
'test_frameworks/*.js',
'js/vinyldns.js',
'lib/services/**/*.spec.js',
'lib/controllers/**/*.spec.js',
'lib/directives/**/*.spec.js',
'lib/*.js',
//fixtures
{pattern: 'mocks/*.json', watched: true, served: true, included: false},
],
// list of files / patterns to exclude
exclude: [],
// web server port
port: 8080,
// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel: config.LOG_INFO,
plugins: [
'karma-jasmine',
'karma-chrome-launcher',
'karma-mocha-reporter',
],
// reporter types:
// - dots
// - progress (default)
// - spec (karma-spec-reporter)
// - junit
// - growl
// - coverage
reporters: ['mocha'],
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox'],
},
},
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: true,
});
};