Skip to content

Commit c814e6d

Browse files
author
0xAlunara
committed
test: wip
1 parent 4118c90 commit c814e6d

File tree

1 file changed

+27
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)