> wdk-protocol-lending-euler-evm@1.0.0-beta.1 test > cross-env NODE_OPTIONS=--experimental-vm-modules jest tests/unit PASS tests/unit/euler-protocol-evm.test.js EulerProtocolEvm constructor √ rejects a malformed vaults map (12 ms) √ reuses the account provider when it has one (1 ms) √ builds a provider from a url string (1 ms) input validation √ supply rejects invalid options (0) (2 ms) √ supply rejects invalid options (1) (1 ms) √ supply rejects invalid options (2) √ withdraw rejects invalid options (3) (1 ms) √ withdraw rejects invalid options (4) (1 ms) √ borrow rejects invalid options (5) (1 ms) √ repay rejects invalid options (6) √ supply rejects invalid options (7) √ quoteSupply rejects invalid options (8) (1 ms) √ quoteBorrow rejects invalid options (9) read-only accounts √ supply requires a full account (1 ms) √ withdraw requires a full account √ borrow requires a full account √ repay requires a full account √ quotes still work (3 ms) supply √ sends vault.deposit(amount, wallet) (2 ms) √ deposits for another receiver (1 ms) √ rejects when the balance is too low √ rejects when the supply cap is reached (1 ms) √ rejects when deposits are disabled by governance √ does not treat a hooked operation as disabled (1 ms) √ forwards the erc-4337 config withdraw √ sends vault.withdraw(amount, wallet, wallet) (1 ms) √ MaxUint256 redeems every share (1 ms) √ rejects a full exit with no shares (1 ms) √ rejects more than the vault can release √ with a controller enabled, a full exit is allowed although EVK reports maxRedeem = 0 (1 ms) √ with a controller enabled, checks balance and cash instead of maxWithdraw (1 ms) borrow √ batches enableController and borrow when the vault is not yet the controller (4 ms) √ skips enableController when already enabled (3 ms) √ rejects a borrow from a second vault while another vault is the controller (1 ms) √ allows a further borrow from the current controller (1 ms) √ rejects without collateral (1 ms) √ rejects when the vault lacks cash √ accepts onBehalfOf equal to the wallet (2 ms) repay √ sends vault.repay(amount, wallet) (1 ms) √ MaxUint256 checks the balance against the current debt √ rejects an amount above the debt, pointing to MaxUint256 (1 ms) √ rejects when there is no debt gas limit buffer √ rejects an invalid buffer (1 ms) √ adds 20% to the estimate by default for standard accounts, in sends and quotes (1 ms) √ leaves erc-4337 accounts to their bundler vault resolution √ requires a vault for unknown tokens Test Suites: 1 passed, 1 total Tests: 46 passed, 46 total Snapshots: 0 total Time: 0.68 s, estimated 2 s Ran all test suites matching /tests\\unit/i.