Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit 0d09012

Browse files
committed
update the TS test
1 parent 1627f8f commit 0d09012

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

cypress/integration/ts-spec.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,15 @@ describe('TypeScript spec', () => {
1515
const n: number = 1
1616
cy.wrap(n).should('eq', 1)
1717
})
18+
19+
it('loads interfaces', () => {
20+
interface Person {
21+
name: string
22+
}
23+
24+
const p: Person = {
25+
name: 'Joe',
26+
}
27+
cy.wrap(p).should('have.property', 'name', 'Joe')
28+
})
1829
})

cypress/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
"compilerOptions": {
33
"types": ["cypress"]
44
},
5-
"files": [
6-
"./integration/**/*.ts"
7-
],
5+
"include": ["./integration/**/*.ts"]
86
}

expects/ts-spec.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"TypeScript spec": {
3-
"loads": "passing"
3+
"loads": "passing",
4+
"loads interfaces": "passing"
45
}
56
}

0 commit comments

Comments
 (0)