feat: upgrade to Angular 16.1

This commit is contained in:
Thea Schöbl
2023-07-24 11:38:58 +00:00
committed by Rainer Killinger
parent df37c6c185
commit 23481d0d73
109 changed files with 2681 additions and 3931 deletions

View File

@@ -1,3 +1,4 @@
// @ts-check
/*
* Copyright (C) 2022 StApps
* This program is free software: you can redistribute it and/or modify it
@@ -13,10 +14,13 @@
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
// Karma configuration file, see link for more information
// Karma configuration file, see the link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
var isDocker = require('is-docker');
/**
* @param config {import('karma').Config}
*/
module.exports = function (config) {
config.set({
basePath: '',
@@ -25,9 +29,9 @@ module.exports = function (config) {
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma'),
require('karma-mocha-reporter'),
require('karma-junit-reporter'),
require('@angular-devkit/build-angular/plugins/karma'),
],
client: {
clearContext: false, // leave Jasmine Spec Runner output visible in browser
@@ -44,19 +48,18 @@ module.exports = function (config) {
useBrowserName: false,
},
reporters: ['mocha', 'junit', 'coverage'],
singleRun: true,
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['ChromeNoSandbox'],
customLaunchers: {
ChromeNoSandbox: {
base: 'ChromeHeadless',
// We must disable the Chrome sandbox when running Chrome inside Docker,
// see https://hackernoon.com/running-karma-tests-with-headless-chrome-inside-docker-ae4aceb06ed3
flags: isDocker ? ['--no-sandbox'] : [],
flags: isDocker() ? ['--no-sandbox'] : [],
},
},
singleRun: false,
});
};