diff --git a/angular.json b/angular.json index a5fea2de64406e50055b7fc578064a21dac76719..7af026e53aae99397903e282c14a0c8b32ea96ae 100644 --- a/angular.json +++ b/angular.json @@ -69,7 +69,14 @@ "lodash", "graphlibrary", "dagre-layout", - "dagre-d3-renderer" + "dagre-d3-renderer", + "dagre", + "dagre-d3", + "@braintree/sanitize-url", + "dompurify", + "graphlib", + "moment-mini", + "sprintf-js" ], "vendorChunk": true, "extractLicenses": false, @@ -85,7 +92,7 @@ "budgets": [ { "type": "anyComponentStyle", - "maximumWarning": "10kb" + "maximumWarning": "150kb" } ], "optimization": true, diff --git a/karma.conf.js b/karma.conf.js deleted file mode 100644 index 0840f6ca5b2368492230d031132858931aebe366..0000000000000000000000000000000000000000 --- a/karma.conf.js +++ /dev/null @@ -1,31 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function (config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client:{ - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ], - fixWebpackSourcePaths: true - }, - - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false - }); -}; diff --git a/src/test.ts b/src/test.ts deleted file mode 100644 index 5b4e606cf96edb4b5fcae7f4c8254672d57e650c..0000000000000000000000000000000000000000 --- a/src/test.ts +++ /dev/null @@ -1,34 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import "zone.js/dist/long-stack-trace-zone"; -import "zone.js/dist/proxy.js"; -import "zone.js/dist/sync-test"; -import "zone.js/dist/jasmine-patch"; -import "zone.js/dist/async-test"; -import "zone.js/dist/fake-async-test"; -import { getTestBed } from "@angular/core/testing"; -import { - BrowserDynamicTestingModule, - platformBrowserDynamicTesting -} from "@angular/platform-browser-dynamic/testing"; - -// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. -declare const __karma__: any; -declare const require: any; - -// Prevent Karma from running prematurely. -__karma__.loaded = function () {}; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment( - BrowserDynamicTestingModule, - platformBrowserDynamicTesting(), { - teardown: { destroyAfterEach: false } -} -); -// Then we find all the tests. -const context = require.context("./", true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); -// Finally, start Karma to run the tests. -__karma__.start(); diff --git a/src/tsconfig.app.json b/src/tsconfig.app.json index 265f8b68b9f0855dda245ae2d94ff6d4865780fe..4ff0123d9e60bc82003a162bae2d585bc3155675 100644 --- a/src/tsconfig.app.json +++ b/src/tsconfig.app.json @@ -9,5 +9,8 @@ "files": [ "main.ts", "polyfills.ts" + ], + "exclude": [ + "environments/environment.prod.ts" ] } diff --git a/src/tsconfig.spec.json b/src/tsconfig.spec.json index b019e30f99fa0fa87af47ab31a47b5856723fd89..81440802493e5ae4d8abf160fb64d5992eb35d7f 100644 --- a/src/tsconfig.spec.json +++ b/src/tsconfig.spec.json @@ -9,7 +9,6 @@ ] }, "files": [ - "test.ts", "polyfills.ts" ], "include": [