My repo is using two libraries(from these libraries UI components ex input box, number picker etc etc are used). One module can only use componets from one library. All tests were passing but when I switched to angular 14 from angular 11, some test cases started failing.
enter image description here
I am not able to proceed into a right direction where I can fix this issue.Can someone help me out or provide some context on this.
I am expecting it to work the same way it worked on the earlier versions. My package .json is attached below:
{
“name”: “@barclays/mca-ui-unseclending-accopen”,
“version”: “23.9.3”,
“contextRoot”: “unseclendingaccopen”,
“scripts”: {
“ng”: “ng”,
“start”: “ng serve”,
“build”: “ng build –project unseclendingaccopen –extra-webpack-config webpack.partial.js –configuration production”,
“build1”: “ng build –subresource-integrity –configuration production –project CONTEXT_REPLACE_ME –extra-webpack-config webpack.partial.js”,
“test:watch”: “jest –watch”,
“test”: “jest”,
“coverage”: “jest –coverage –config jest.config.js”,
“dts”: “./node_modules/.bin/npm-dts generate”,
“lint”: “ng lint”,
“lint:fix”: “ng lint — –fix”,
“e2e”: “protractor ./e2e/protractor.conf.js”,
“postinstall”: “component-style-loader –target src”,
“docs”: “echo “no docs””,
“ccmcheck”: “eagle ccmcheck”
},
“private”: false,
“dependencies”: {
“@angular/animations”: “14.3.0”,
“@angular/cdk”: “14.2.7”,
“@angular/common”: “14.3.0”,
“@angular/compiler”: “14.3.0”,
“@angular/core”: “14.3.0”,
“@angular/forms”: “14.3.0”,
“@angular/platform-browser”: “14.3.0”,
“@angular/platform-browser-dynamic”: “14.3.0”,
“@angular/router”: “14.3.0”,
“@barclays/blueprint-angular”: “0.56.0”,
“@barclays/blueprint-css-components-content”: “^0.13.0”,
“@barclays/blueprint-fonts-effra”: “0.54.0”,
“@barclays/mca-angular-beam”: “^4.0.21”,
“@barclays/mca-api-mca”: “4.2.1”,
“@barclays/mca-api-mca-launcher”: “4.2.1”,
“@barclays/mca-api-service”: “4.2.1”,
“@barclays/mca-beam-blueprint-angular”: “3.0.1”,
“@barclays/mca-build-style-loader”: “4.0.9”,
“@barclays/mca-events”: “2.0.0-MCAUI-1188.1”,
“@barclays/tcl-mca-ngx-api”: “^1.0.3”,
“@barclays/tcl-ngx”: “3.39.0”,
“@barclays/tcl-ui-validators”: “^0.4.0”,
“@ngx-translate/core”: “13.0.0”,
“@ngx-translate/http-loader”: “6.0.0”,
“@schematics/angular”: “^14.2.13”,
“@types/pdfjs-dist”: “^2.1.7”,
“core-js”: “2.5.4”,
“cors”: “2.8.5”,
“glob-parent”: “5.1.1”,
“modern-css-reset”: “^1.4.0”,
“ngx-build-plus”: “14.0.0”,
“pdfjs-dist”: “2.5.207”,
“rxjs”: “7.4.0”,
“sloc”: “^0.2.1”,
“tslib”: “^2.0.0”,
“web-animations-js”: “2.3.2”,
“webpack”: “^5.74.0”,
“zone.js”: “~0.11.4”
},
“devDependencies”: {
“@angular-devkit/architect”: “^0.1402.13”,
“@angular-devkit/build-angular”: “14.2.13”,
“@angular-eslint/builder”: “14.4.0”,
“@angular-eslint/eslint-plugin”: “14.4.0”,
“@angular-eslint/eslint-plugin-template”: “14.4.0”,
“@angular-eslint/schematics”: “14.4.0”,
“@angular-eslint/template-parser”: “14.4.0”,
“@angular/cli”: “14.2.13”,
“@angular/compiler-cli”: “14.3.0”,
“@barclays/mca-eagle-scripts”: “4.1.2”,
“@types/jasmine”: “~3.6.0”,
“@types/jasminewd2”: “2.0.3”,
“@types/jest”: “^29.1.0”,
“@types/node”: “12.11.1”,
“@typescript-eslint/eslint-plugin”: “4.3.0”,
“@typescript-eslint/parser”: “4.3.0”,
“codelyzer”: “^6.0.0”,
“eslint”: “^7.6.0”,
“eslint-plugin-import”: “2.22.1”,
“eslint-plugin-jsdoc”: “30.7.6”,
“eslint-plugin-prefer-arrow”: “1.2.2”,
“jasmine-core”: “~3.6.0”,
“jasmine-spec-reporter”: “~5.0.0”,
“jest”: “^29.1.0”,
“jest-preset-angular”: “^13.1.3”,
“jsdom”: “16.2.2”,
“karma-firefox-launcher”: “1.3.0”,
“karma-jsdom-launcher”: “8.0.2”,
“npm-dts”: “1.2.1”,
“protractor”: “~7.0.0”,
“ts-jest”: “^29.1.0”,
“ts-node”: “8.3.0”,
“tslint”: “~6.1.0”,
“typescript”: “4.8.4”
}
}