Skip to content

Commit 895ee64

Browse files
author
0xAlunara
committed
test: wip
1 parent 2d37b6f commit 895ee64

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { ClientWrapper, type Config } from '@cy/support/helpers/ClientWrapper'
2+
import { createTestWagmiConfigFromVNet, withVirtualTestnet } from '@cy/support/helpers/tenderly'
3+
4+
const getVirtualNetwork = withVirtualTestnet(() => ({
5+
vnetId: 'a967f212-c4a3-4d65-afb6-2e79055f7a6f',
6+
}))
7+
8+
const TestComponent = ({ config }: { config: Config }) => (
9+
<ClientWrapper config={config} autoConnect={false}>
10+
Yolo mag swagginton
11+
</ClientWrapper>
12+
)
13+
14+
describe('PegKeeper', () => {
15+
it(`should work for loan app`, () => {
16+
const vnet = getVirtualNetwork()
17+
if (!vnet) {
18+
cy.log('Could not fetch virtual testnet')
19+
return
20+
}
21+
22+
const config = createTestWagmiConfigFromVNet(vnet)
23+
cy.mount(<TestComponent config={config} />)
24+
cy.log(JSON.stringify(vnet))
25+
})
26+
})

0 commit comments

Comments
 (0)