Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// test resources
{pattern: 'test/**/*.test.worker.js', included: false},
{pattern: 'test/**/*.json', included: false},
{pattern: 'test/**/*.xml', included: false},
{pattern: 'test/resources/**/*', included: false},
// source files for the script loader
{pattern: 'src/**/*.js', watched: false, included: false, served: true},
{pattern: 'test/**/*.js', watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('google-closure-library/**/*.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('openlayers/**/*.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('ol-cesium/**/*.js', __dirname), watched: false, included: false, served: true},
// serve the test manifest and include the script loader
{pattern: '.build/gcc-test-manifest', watched: false, included: false, served: true},
resolver.resolveModulePath('opensphere-build-index/karma-test-loader.js', __dirname)
],
proxies: {
// the test loader uses this path to resolve the manifest
'/karma-test-scripts': path.resolve(__dirname, '.build', 'gcc-test-manifest'),
// some tests load resources with an absolute path from these modules
'/opensphere': path.resolve(__dirname),
'/google-closure-library': resolver.resolveModulePath('google-closure-library', __dirname),
'/opensphere-state-schema': resolver.resolveModulePath('opensphere-state-schema', __dirname)
},
// list of files to exclude
exclude: [
'src/main.js',
'**/*.swp'
],
basePath: '',
// frameworks to use
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: [
{pattern: '.build/modernizr.js', watched: false, included: true, served: true},
{pattern: '.build/xml-lexer.min.js', watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('opensphere-asm/dist/os-wasm.*', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('opensphere-asm/dist/os-asm.*', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('opensphere-asm/dist/os-load.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jquery/dist/jquery.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('angular/angular.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('angular-sanitize/angular-sanitize.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('angular-mocks/angular-mocks.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('d3/d3.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jsts/dist/jsts.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('proj4/dist/proj4.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('bootstrap/dist/js/bootstrap.bundle.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('moment/min/moment.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('crossfilter2/crossfilter.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('papaparse/papaparse.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('cesium/Build/CesiumUnminified/Cesium.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('xmllint/xmllint.js', __dirname), watched: false, included: true, served: true},
{pattern: 'vendor/geomag/WMM.COF', watched: false, included: false, served: true},
{pattern: 'vendor/geomag/cof2Obj.js', watched: false, included: true, served: true},
{pattern: 'vendor/geomag/geomag.js', watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('css-element-queries/src/ResizeSensor.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jschardet/dist/jschardet.min.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('oboe/dist/oboe-browser.min.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('lolex/lolex.js', __dirname), watched: false, included: true, served: true},
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// frameworks to use
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: [
{pattern: '.build/modernizr.js', watched: false, included: true, served: true},
{pattern: '.build/xml-lexer.min.js', watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('opensphere-asm/dist/os-wasm.*', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('opensphere-asm/dist/os-asm.*', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('opensphere-asm/dist/os-load.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jquery/dist/jquery.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('angular/angular.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('angular-sanitize/angular-sanitize.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('angular-mocks/angular-mocks.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('d3/d3.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jsts/dist/jsts.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('proj4/dist/proj4.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('bootstrap/dist/js/bootstrap.bundle.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('moment/min/moment.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('crossfilter2/crossfilter.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('papaparse/papaparse.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('cesium/Build/CesiumUnminified/Cesium.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('xmllint/xmllint.js', __dirname), watched: false, included: true, served: true},
{pattern: 'vendor/geomag/WMM.COF', watched: false, included: false, served: true},
{pattern: 'vendor/geomag/cof2Obj.js', watched: false, included: true, served: true},
{pattern: 'vendor/geomag/geomag.js', watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('css-element-queries/src/ResizeSensor.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jschardet/dist/jschardet.min.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('angular-sanitize/angular-sanitize.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('angular-mocks/angular-mocks.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('d3/d3.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jsts/dist/jsts.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('proj4/dist/proj4.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('bootstrap/dist/js/bootstrap.bundle.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('moment/min/moment.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('crossfilter2/crossfilter.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('papaparse/papaparse.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('cesium/Build/CesiumUnminified/Cesium.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('xmllint/xmllint.js', __dirname), watched: false, included: true, served: true},
{pattern: 'vendor/geomag/WMM.COF', watched: false, included: false, served: true},
{pattern: 'vendor/geomag/cof2Obj.js', watched: false, included: true, served: true},
{pattern: 'vendor/geomag/geomag.js', watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('css-element-queries/src/ResizeSensor.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jschardet/dist/jschardet.min.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('oboe/dist/oboe-browser.min.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('lolex/lolex.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/zip.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/zip-ext.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/deflate.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/inflate.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/z-worker.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('opensphere-state-schema/src/main/**/*.xsd', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('suncalc/suncalc.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('markdown-it/dist/markdown-it.min.js', __dirname), watched: false, included: true, served: true},
// initialization to run prior to tests
'test/init.js',
// test resources
{pattern: 'test/**/*.test.worker.js', included: false},
{pattern: resolver.resolveModulePath('d3/d3.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jsts/dist/jsts.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('proj4/dist/proj4.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('bootstrap/dist/js/bootstrap.bundle.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('moment/min/moment.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('crossfilter2/crossfilter.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('papaparse/papaparse.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('cesium/Build/CesiumUnminified/Cesium.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('xmllint/xmllint.js', __dirname), watched: false, included: true, served: true},
{pattern: 'vendor/geomag/WMM.COF', watched: false, included: false, served: true},
{pattern: 'vendor/geomag/cof2Obj.js', watched: false, included: true, served: true},
{pattern: 'vendor/geomag/geomag.js', watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('css-element-queries/src/ResizeSensor.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jschardet/dist/jschardet.min.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('oboe/dist/oboe-browser.min.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('lolex/lolex.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/zip.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/zip-ext.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/deflate.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/inflate.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/z-worker.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('opensphere-state-schema/src/main/**/*.xsd', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('suncalc/suncalc.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('markdown-it/dist/markdown-it.min.js', __dirname), watched: false, included: true, served: true},
// initialization to run prior to tests
'test/init.js',
// test resources
{pattern: 'test/**/*.test.worker.js', included: false},
{pattern: 'test/**/*.json', included: false},
{pattern: 'test/**/*.xml', included: false},
{pattern: resolver.resolveModulePath('papaparse/papaparse.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('cesium/Build/CesiumUnminified/Cesium.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('xmllint/xmllint.js', __dirname), watched: false, included: true, served: true},
{pattern: 'vendor/geomag/WMM.COF', watched: false, included: false, served: true},
{pattern: 'vendor/geomag/cof2Obj.js', watched: false, included: true, served: true},
{pattern: 'vendor/geomag/geomag.js', watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('css-element-queries/src/ResizeSensor.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jschardet/dist/jschardet.min.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('oboe/dist/oboe-browser.min.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('lolex/lolex.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/zip.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/zip-ext.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/deflate.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/inflate.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/z-worker.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('opensphere-state-schema/src/main/**/*.xsd', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('suncalc/suncalc.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('markdown-it/dist/markdown-it.min.js', __dirname), watched: false, included: true, served: true},
// initialization to run prior to tests
'test/init.js',
// test resources
{pattern: 'test/**/*.test.worker.js', included: false},
{pattern: 'test/**/*.json', included: false},
{pattern: 'test/**/*.xml', included: false},
{pattern: 'test/resources/**/*', included: false},
// source files for the script loader
{pattern: 'src/**/*.js', watched: false, included: false, served: true},
{pattern: 'test/**/*.js', watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('google-closure-library/**/*.js', __dirname), watched: false, included: false, served: true},
files: [
{pattern: '.build/modernizr.js', watched: false, included: true, served: true},
{pattern: '.build/xml-lexer.min.js', watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('opensphere-asm/dist/os-wasm.*', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('opensphere-asm/dist/os-asm.*', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('opensphere-asm/dist/os-load.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jquery/dist/jquery.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('angular/angular.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('angular-sanitize/angular-sanitize.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('angular-mocks/angular-mocks.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('d3/d3.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jsts/dist/jsts.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('proj4/dist/proj4.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('bootstrap/dist/js/bootstrap.bundle.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('moment/min/moment.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('crossfilter2/crossfilter.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('papaparse/papaparse.min.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('cesium/Build/CesiumUnminified/Cesium.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('xmllint/xmllint.js', __dirname), watched: false, included: true, served: true},
{pattern: 'vendor/geomag/WMM.COF', watched: false, included: false, served: true},
{pattern: 'vendor/geomag/cof2Obj.js', watched: false, included: true, served: true},
{pattern: 'vendor/geomag/geomag.js', watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('css-element-queries/src/ResizeSensor.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('jschardet/dist/jschardet.min.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('oboe/dist/oboe-browser.min.js'), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('lolex/lolex.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/zip.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/zip-ext.js', __dirname), watched: false, included: true, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/deflate.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/inflate.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('zip-js/WebContent/z-worker.js', __dirname), watched: false, included: false, served: true},
{pattern: resolver.resolveModulePath('opensphere-state-schema/src/main/**/*.xsd', __dirname), watched: false, included: false, served: true},
target: 'vendor/os-minified/',
files: ['os-tui-editor.min.js']
},
{
source: resolver.resolveModulePath('crossfilter2', __dirname),
target: 'vendor/crossfilter',
scripts: ['crossfilter.min.js']
},
{
source: resolver.resolveModulePath('font-awesome', __dirname),
target: 'vendor/font-awesome',
css: ['css/font-awesome.min.css'],
files: ['fonts']
},
{
source: resolver.resolveModulePath('moment/min', __dirname),
target: 'vendor/moment',
scripts: ['moment.min.js']
},
{
source: resolver.resolveModulePath('angular', __dirname),
target: 'vendor/angular',
scripts: ['angular.min.js']
},
{
source: resolver.resolveModulePath('angular-animate', __dirname),
target: 'vendor/angular',
scripts: ['angular-animate.min.js']
},
{
source: resolver.resolveModulePath('angular-sanitize', __dirname),
target: 'vendor/angular',
source: resolver.resolveModulePath('jquery/dist', __dirname),
target: 'vendor/jquery',
scripts: ['jquery.min.js']
},
{
source: 'src/worker',
target: 'src/worker',
files: ['computeframediffs.js', 'dataurltoarray.js']
},
{
source: 'vendor/jquery',
target: 'vendor/jquery',
scripts: ['jquery.event.drag-2.3.0.js']
},
{
source: resolver.resolveModulePath('css-element-queries/src', __dirname),
target: 'vendor/css-element-queries',
scripts: ['ResizeSensor.js']
},
{
source: 'vendor/jquery-ui',
target: 'vendor/jquery-ui',
css: ['lightness/jquery-ui-1.12.1.min.css'],
scripts: ['jquery-ui-1.12.1.min.js'],
files: ['lightness/images']
},
{
source: resolver.resolveModulePath('bootstrap/dist', __dirname),
target: 'vendor/bootstrap',
scripts: ['js/bootstrap.bundle.min.js']
},
{
scripts: ['jquery.event.drag-2.3.0.js']
},
{
source: resolver.resolveModulePath('css-element-queries/src', __dirname),
target: 'vendor/css-element-queries',
scripts: ['ResizeSensor.js']
},
{
source: 'vendor/jquery-ui',
target: 'vendor/jquery-ui',
css: ['lightness/jquery-ui-1.12.1.min.css'],
scripts: ['jquery-ui-1.12.1.min.js'],
files: ['lightness/images']
},
{
source: resolver.resolveModulePath('bootstrap/dist', __dirname),
target: 'vendor/bootstrap',
scripts: ['js/bootstrap.bundle.min.js']
},
{
source: 'vendor/bootstrap2',
target: 'vendor/bootstrap2',
scripts: ['typeahead.js']
},
{
source: resolver.resolveModulePath('select2', __dirname),
target: 'vendor/select2',
css: ['select2.css'],
scripts: ['select2.js'],
files: ['*.+(gif|png)']
},
{