I encountered an issue in my Angular CLI that says:
jest.config.js is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Additionally, I have a few other files currently unused (but will be used later).
Now, I am looking for a way to suppress these errors from the console. Can anyone help with the configuration?
Here is a snippet from my tsconfig.json
{
// Configuration settings here
}
As a solution, I made updates to the exclude array like so:
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/*.js",
"src/jestGlobalMocks.ts", //error persists
"src/setup-jest.ts" //error persists
],