Skip to content

Commit 7a4ae5a

Browse files
committed
100% jest coverage
1 parent a9f1e8b commit 7a4ae5a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/typesIndex.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ describe('types index exports', () => {
77
const provider = await import('../src/context/HgraphProvider')
88
expect(types.useHgraph).toBe(hooks.useHgraph)
99
expect(types.HgraphProvider).toBe(provider.HgraphProvider)
10+
11+
// accessing these triggers getter functions defined in the index
12+
const ethers = await import('ethers')
13+
expect(types.EthersContract).toBe(ethers.Contract)
14+
expect(types.EventLogDescription).toBe(ethers.LogDescription)
1015
})
1116

1217
it('exports enums and default client class', async () => {

0 commit comments

Comments
 (0)