From bb42d46548b19d86900f84182d1c9023b8f26b88 Mon Sep 17 00:00:00 2001 From: Henry Taeschner Date: Sat, 30 Dec 2023 14:18:53 +0100 Subject: [PATCH 1/3] fix: testing sonar workflow --- src/app/theme-mgmt-remote.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/theme-mgmt-remote.module.ts b/src/app/theme-mgmt-remote.module.ts index ec377f7..a447a08 100644 --- a/src/app/theme-mgmt-remote.module.ts +++ b/src/app/theme-mgmt-remote.module.ts @@ -17,6 +17,6 @@ const routes: Routes = [ }) export class ThemeMgmtModule { constructor(@Inject(MFE_INFO) mfeInfo?: MfeInfo) { - console.info('Theme Mgmt Module constructor', mfeInfo) + console.info('Theme Mgmt Module constructor (test 1)', mfeInfo) } } From c2851d38f9f3da1b6d69b4bb2a06670e3fb45d67 Mon Sep 17 00:00:00 2001 From: Henry Taeschner Date: Sat, 30 Dec 2023 18:31:16 +0100 Subject: [PATCH 2/3] fix: testing sonar workflow 2 --- src/app/theme-mgmt-remote.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/theme-mgmt-remote.module.ts b/src/app/theme-mgmt-remote.module.ts index a447a08..54c0cf0 100644 --- a/src/app/theme-mgmt-remote.module.ts +++ b/src/app/theme-mgmt-remote.module.ts @@ -17,6 +17,6 @@ const routes: Routes = [ }) export class ThemeMgmtModule { constructor(@Inject(MFE_INFO) mfeInfo?: MfeInfo) { - console.info('Theme Mgmt Module constructor (test 1)', mfeInfo) + console.info('Theme Mgmt Module constructor (test 2)', mfeInfo) } } From 83d65b46510abbe10f2233db07505b3c1762bddb Mon Sep 17 00:00:00 2001 From: Henry Taeschner Date: Sat, 30 Dec 2023 18:46:31 +0100 Subject: [PATCH 3/3] fix: testing sonar workflow 3 --- jest.config.ts | 8 ++++---- karma.conf.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index 2a259b8..5884d86 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,15 +1,15 @@ /* eslint-disable */ export default { - displayName: 'theme-mgmt-ui', + displayName: 'onecx-theme-ui', preset: './jest.preset.js', - setupFilesAfterEnv: ['/src/test-setup.ts'], + setupFilesAfterEnv: ['./src/test-setup.ts'], globals: {}, - coverageDirectory: './coverage/app', + coverageDirectory: './coverage', transform: { '^.+\\.(ts|mjs|js|html)$': [ 'jest-preset-angular', { - tsconfig: '/tsconfig.spec.json', + tsconfig: './tsconfig.spec.json', stringifyContentPathRegex: '\\.(html|svg)$' } ] diff --git a/karma.conf.js b/karma.conf.js index dd48008..b53e481 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -25,7 +25,7 @@ module.exports = function (config) { suppressAll: true // removes the duplicated traces }, coverageReporter: { - dir: require('path').join(__dirname, './coverage/app'), + dir: require('path').join(__dirname, './coverage'), subdir: '.', reporters: [{ type: 'html' }, { type: 'text-summary' }] },