nx migrations

This commit is contained in:
Dan Percic 2021-09-11 20:01:03 +03:00
parent c7546078ec
commit e42951fd9a

View File

@ -5,10 +5,7 @@ module.exports = {
globals: { globals: {
'ts-jest': { 'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json', tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$', stringifyContentPathRegex: '\\.(html|svg)$'
astTransformers: {
before: ['jest-preset-angular/build/InlineFilesTransformer', 'jest-preset-angular/build/StripStylesTransformer']
}
} }
}, },
coverageDirectory: '../../coverage/libs/common-ui', coverageDirectory: '../../coverage/libs/common-ui',
@ -16,5 +13,6 @@ module.exports = {
'jest-preset-angular/build/serializers/no-ng-attributes', 'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot', 'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment' 'jest-preset-angular/build/serializers/html-comment'
] ],
transform: { '^.+\\.(ts|js|html)$': 'jest-preset-angular' }
}; };