Feature/upgrade angular and nx 20230405 (#1826)

* Upgrade angular and Nx

* Update changelog
This commit is contained in:
Thomas Kaul
2023-04-06 19:18:23 +02:00
committed by GitHub
parent 732b14c6ab
commit a5f833c612
10 changed files with 1127 additions and 1067 deletions

View File

@@ -2,11 +2,9 @@
export default {
displayName: 'common',
globals: {
'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' }
},
globals: {},
transform: {
'^.+\\.[tj]sx?$': 'ts-jest'
'^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }]
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/libs/common',

View File

@@ -3,15 +3,16 @@ export default {
displayName: 'ui',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$'
}
},
globals: {},
coverageDirectory: '../../coverage/libs/ui',
transform: {
'^.+.(ts|mjs|js|html)$': 'jest-preset-angular'
'^.+.(ts|mjs|js|html)$': [
'jest-preset-angular',
{
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$'
}
]
},
transformIgnorePatterns: ['node_modules/(?!.*.mjs$)'],
snapshotSerializers: [

View File

@@ -3,7 +3,8 @@
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
"types": ["jest", "node"],
"target": "es2016"
},
"files": ["src/test-setup.ts"],
"include": ["**/*.spec.ts", "**/*.test.ts", "**/*.d.ts", "jest.config.ts"]