I'm facing an issue with my Angular tsconfig not detecting the Cypress 12.3 types. I have tried numerous solutions to resolve this problem, but nothing seems to work, except for the extreme measure of starting the project over, which I think might solve the issue.
Although my code is running smoothly, I am unable to figure out how to fix the situation that can be seen in the screenshot shared below:
https://i.sstatic.net/PgHto.png
Currently, the contents of my cypress/tsconfig.json
file are as follows:
{
"extends": "../tsconfig.spec.json",
"files": [
"../cypress/**/*.ts",
"../cypress.config.ts",
"../node_modules/cypress"
],
"compilerOptions": {
"sourceMap": false,
"types": ["cypress", "node", "jasmine-expect", "chai"]
}
}
The configuration mentioned above is attempting to prioritize the jasmine expect type over the chai expect, which is necessary for my requirements.