Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Refactor typescript vault tests #280

Merged
merged 6 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions apps/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@
"deploy-fixed": "tsc && node dist/strategies/deploy_fixed.js",
"deploy-blend": "tsc && node dist/strategies/deploy_blend.js",
"publish-addresses": "tsc && node dist/publish_addresses.js",
"test": "tsc && node dist/test.js",
"test-vault": "tsc && node dist/tests/testOnlyVault.js",
"test": "tsc && node dist/tests/mainTest.js",
"test-blend-strategy": "tsc && node dist/tests/blend/test_strategy.js",
"test-blend-vault": "tsc && node dist/tests/blend/test_vault.js",
"test-dev": "tsc && node dist/tests/dev.js",
"test-two-strat-vault": "tsc && node dist/tests/testTwoStrategiesVault.js"
"test-blend-vault": "tsc && node dist/tests/blend/test_vault.js"
},
"type": "module",
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion apps/contracts/src/tests/blend/test_strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ export async function testBlendStrategy(user?: Keypair) {
console.log(green, '------------ BLND Harvested from the vault ------------')
console.log(green, 'harvestResult', harvestResultValue)
console.log(green, '----------------------------------------------------')
return true
}catch(e){
console.log('error', e)
return false
}
}

await testBlendStrategy();
//await testBlendStrategy();
3 changes: 2 additions & 1 deletion apps/contracts/src/tests/blend/test_vault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export async function testBlendVault(user?: Keypair) {
console.log(green, '---------------------- Invested in strategy ----------------------')
console.log(green, 'Invested: ', investResult, ' in the strategy')
console.log(green, '------------------------------------------------------------------')
return true
} catch (error) {
console.log('❌ Error Investing the Vault:', error);
exit("Error Investing");
Expand Down Expand Up @@ -206,4 +207,4 @@ export async function testBlendVault(user?: Keypair) {

// }
}
await testBlendVault();
//await testBlendVault();
15 changes: 0 additions & 15 deletions apps/contracts/src/tests/dev.ts

This file was deleted.

Loading
Loading