Skip to content

Commit

Permalink
feat: improve menu mgmt layout, add validators in contact (#437)
Browse files Browse the repository at this point in the history
* feat: improve menu mgmt layout, add validators in contact

* feat: improve menu tests

* fix: tests

* fix: tests

* fix: tests

* fix: tests in menu

* fix: add reaction on 418 (no iam roles) and fix tests

* fix: tests in menu

* fix: enable all tests

* fix: tests
  • Loading branch information
HenryT-CG authored Nov 20, 2024
1 parent 6920870 commit 9178a5e
Show file tree
Hide file tree
Showing 24 changed files with 715 additions and 303 deletions.
41 changes: 18 additions & 23 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
// https://karma-runner.github.io/6.4/config/configuration-file.html
// process.env.CHROME_BIN = require('puppeteer').executablePath()

module.exports = function (config) {
config.set({
Expand All @@ -14,18 +15,26 @@ module.exports = function (config) {
require('karma-sonarqube-unit-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
port: 9876,
colors: true,
autoWatch: true,
singleRun: false,
restartOnFileChange: true,
browserConsoleLogOptions: { level: 'debug', format: '%b %T: %m', terminal: true },
// export CHROME_BIN=<path to binary>
browsers: ['Chrome'],
customLaunchers: {
Chrome: { base: 'ChromeHeadless', flags: ['--no-sandbox', '--disable-web-security'] }
},
client: {
jasmine: {
// you can add configuration options for Jasmine here
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
// for example, you can disable the random execution with `random: false`
// or set a specific seed with `seed: 4321`
random: false
},
// https://jasmine.github.io/api/edge/Configuration.html
jasmine: { random: false },
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
reporters: ['progress', 'kjhtml', 'coverage', 'sonarqubeUnit'],
preprocessors: { 'src/**/*.js': ['coverage'] },
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
suppressAll: true // remove duplicated traces
},
sonarqubeReporter: {
basePath: 'src/app', // test files folder
Expand All @@ -47,20 +56,6 @@ module.exports = function (config) {
dir: 'reports',
subdir: 'coverage', // common name instaed browser-specific
reporters: [{ type: 'text-summary' }, { type: 'lcov' }]
},
reporters: ['progress', 'kjhtml', 'coverage', 'sonarqubeUnit'],
preprocessors: { 'src/**/*.js': ['coverage'] },
port: 9876,
colors: true,
autoWatch: true,
singleRun: false,
restartOnFileChange: true,
browsers: ['HeadlessChrome'],
customLaunchers: {
HeadlessChrome: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
}
})
}
Loading

0 comments on commit 9178a5e

Please sign in to comment.