Skip to content

Commit

Permalink
Adding guide around types with Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Oct 3, 2023
1 parent e0a1086 commit 1c36175
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/guides/references/migration-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1501,6 +1501,19 @@ respectively.
Any previous dev servers or mounting libraries from the `@cypress` namespace
should be uninstalled in Cypress 10.

### Clashing Types with Jest

You may want to consider configuring your app with separate `tsconfig.json` to solve
[clashing types with jest](/guides/tooling/typescript-support#Clashing-types-with-Jest).
You will need to exclude `cypress.config.ts`, `cypress`, `node_modules` in your
root `tsconfig.json` file.

```json
{
"exclude": ["cypress.config.ts", "cypress", "node_modules"]
}
```

### Code Coverage Plugin

The [Cypress Code Coverage](https://github.com/cypress-io/code-coverage#readme)
Expand Down
13 changes: 13 additions & 0 deletions docs/guides/tooling/typescript-support.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ If that does not work, try restarting the IDE.

:::

### Clashing Types with Jest

You may want to consider configuring your app with separate `tsconfig.json` to solve
[clashing types with jest](/guides/tooling/typescript-support#Clashing-types-with-Jest).
You will need to exclude `cypress.config.ts`, `cypress`, `node_modules` in your
root `tsconfig.json` file.

```json
{
"exclude": ["cypress.config.ts", "cypress", "node_modules"]
}
```

### Types for Custom Commands

When adding [custom commands](/api/cypress-api/custom-commands) to the `cy`
Expand Down

0 comments on commit 1c36175

Please sign in to comment.