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' }] }, diff --git a/src/app/theme-mgmt-remote.module.ts b/src/app/theme-mgmt-remote.module.ts index ec377f7..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', mfeInfo) + console.info('Theme Mgmt Module constructor (test 2)', mfeInfo) } }