Skip to content

Commit

Permalink
Add tsconfig for cypress to turn of isolatedModules
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeweiler committed Oct 7, 2021
1 parent 3e71746 commit 5f03939
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 0 additions & 2 deletions cypress/integration/App.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ describe("My First Test", () => {
cy.dataCy("app-container")
})
})

export {}
2 changes: 0 additions & 2 deletions cypress/support/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ function dataCy(identifier: string) {
}

Cypress.Commands.add("dataCy", dataCy)

export {}
9 changes: 9 additions & 0 deletions cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["es5", "dom"],
"types": ["cypress"],
"isolatedModules": false
},
"include": ["**/*.ts"]
}

0 comments on commit 5f03939

Please sign in to comment.