0

`After upgrading to angular13 getting warnings like

Warning: C:/newCloneForSocialLogin/BankFE/WebApp/src/app/pages/custom-fields-mapping/custom-fields-mapping.component.spec.ts is part of the TypeScript compilation but it's unused. Add only entry points to the 'files' or 'include' properties in your tsconfig.

I added in my tsconfig like

"files": [
    "src/main.ts",
    "src/polyfills.ts"
  ],
  "include": [
   "src/**/*.ts",
  ]

If i add spec file in the excludes like below. then test cases are not running.

  "exclude": [
    "src/**/*.spec.ts",
  ]

I need to run the test cases and remove those warnings. Please let me know if you find any solution for this.

Thank you

  • Suggest starting a new angular project and comparing tsconfig.json, tsconfig.app.json etc the upgraded and newly created one. Closing as looks like duplicate - @ me if this is not the case after updating question – Andrew Allen Oct 25 '22 at 15:33

0 Answers0