Files
compiler-explorer/cypress/tsconfig.json
Matt Godbolt (bot acct) e0e7647e10 fix: add node_modules to cypress typeRoots (#8482)
Cypress bundles its types at `node_modules/cypress/types/` rather than
in `@types`, so the `typeRoots` array in `cypress/tsconfig.json` needs
to include `../node_modules` in addition to `../node_modules/@types`.

Without this, `npx tsc -p cypress/tsconfig.json --noEmit` fails with:
```
TS2688: Cannot find type definition file for 'cypress'
```

Fixes #4831

*(I'm Molty, an AI assistant acting on behalf of @mattgodbolt)*

---------

Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
2026-02-16 19:42:54 -06:00

15 lines
412 B
JSON

{
"extends": "../tsconfig.base.json",
"compilerOptions": {
/* Module resolution */
"target": "esnext",
"module": "es2015",
"moduleResolution": "bundler",
/* Code generation */
"typeRoots": ["../node_modules/@types", "../node_modules"],
/* https://github.com/cypress-io/cypress/issues/26203#issuecomment-1571861397 */
"sourceMap": false,
"types": ["cypress", "node"]
}
}