Skip to content

Commit 257cef0

Browse files
authored
prefer types as code files should ideally not have side effects
1 parent 814d999 commit 257cef0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/testing/cypress.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Setup TypeScript `tsconfig.json` e.g.
4040
"dom",
4141
"es6"
4242
],
43+
"types": ["cypress"],
4344
"jsx": "react",
4445
"experimentalDecorators": true
4546
},
@@ -105,8 +106,6 @@ Under the `e2e` folder you now have these files:
105106
* create a file `/cypress/integration/first.spec.ts` with the following contents:
106107

107108
```ts
108-
/// <reference types="cypress"/>
109-
110109
describe('google search', () => {
111110
it('should work', () => {
112111
cy.visit('http://www.google.com');

0 commit comments

Comments
 (0)