Skip to content

Commit

Permalink
Update dependencies (#111)
Browse files Browse the repository at this point in the history
* bump angular

* bump easy grunt libs

* able to run test after bumping puppeteer

* everything appears to be working....

* still working, down to jasmine and karma-jasmine!

* I think these are no longer needed, and I think we took them out of Quepid too...  a while ago.

* After MUCH fighting, and starting over with a empty karma/jasmine/node project, and then copying things over, got the magic incantation....

* npm outdated just spoke up again

* npm audit, for the easy ones
  • Loading branch information
epugh authored Sep 6, 2022
1 parent aec1741 commit 3a01ce4
Show file tree
Hide file tree
Showing 5 changed files with 1,090 additions and 2,478 deletions.
98 changes: 43 additions & 55 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
// Karma configuration
// http://karma-runner.github.io/0.12/config/configuration-file.html
// Generated on 2014-07-17 using
// generator-karma 0.8.3
// Generated on Fri Sep 02 2022 14:34:16 GMT-0400 (Eastern Daylight Time)

process.env.CHROME_BIN = require('puppeteer').executablePath();
process.env.CHROME_BIN = require('puppeteer').executablePath()

module.exports = function(config) {
'use strict';

config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,

// base path, that will be used to resolve files and exclude
basePath: './',
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',


// testing framework to use (jasmine/mocha/qunit/...)
// frameworks to use
// available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter
frameworks: ['jasmine'],


// list of files / patterns to load in the browser
files: [
'node_modules/angular/angular.js',
Expand All @@ -31,61 +28,52 @@ module.exports = function(config) {
'test/spec/**/*.js'
],

// list of files / patterns to exclude
exclude: [],

// web server port
port: 8080,

// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: [
'ChromeHeadlessNoSandbox'
// list of files / patterns to exclude
exclude: [
],

customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox', '--headless']
}
},

// Which plugins to enable
plugins: [
'karma-chrome-launcher',
'karma-jasmine',
'karma-coverage'
],

// preprocess matching files before serving them to the browser
// available preprocessors: https://www.npmjs.com/search?q=keywords:karma-preprocessor
preprocessors: {
'services/**/*.js': ['coverage'],
'factories/**/*.js': ['coverage'],
'values/**/*.js': ['coverage']
},

reporters: ['progress', 'coverage'],

// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: true,
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://www.npmjs.com/search?q=keywords:karma-reporter
reporters: ['progress'],


// web server port
port: 9876,


// enable / disable colors in the output (reporters and logs)
colors: true,


// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,

// Uncomment the following lines if you are using grunt's server to run the tests
// proxies: {
// '/': 'http://localhost:9000/'
// },
// URL root prevent conflicts with the site root
// urlRoot: '_karma_'
});
};

// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,


// start these browsers
// available browser launchers: https://www.npmjs.com/search?q=keywords:karma-launcher
browsers: ['ChromeHeadless'],


// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,

// Concurrency level
// how many browser instances should be started simultaneously
concurrency: Infinity
})
}
Loading

0 comments on commit 3a01ce4

Please sign in to comment.