## Summary - add a useSnatchSelection composable that centralises snatch shortfall calculations, position filtering, and RPC memoisation - refactor StakeHolder.vue to consume the composable instead of reimplementing the flow inline - introduce Vitest config and first composable tests (useSnatchSelection.spec.ts) to cover empty/partial fills and ownership edge cases - wire up project tooling updates so the new tests run (jsdom dep, updated package metadata) ## Testing - cd web-app && npm install - npm test resolves #24 Co-authored-by: openhands <openhands@all-hands.dev> Reviewed-on: https://codeberg.org/johba/harb/pulls/30
46 lines
1.2 KiB
JSON
46 lines
1.2 KiB
JSON
{
|
|
"name": "harb-staking",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "run-p type-check \"build-only {@}\" --",
|
|
"preview": "vite preview",
|
|
"build-only": "vite build",
|
|
"type-check": "vue-tsc --build",
|
|
"subtree": "git subtree push --prefix dist origin gh-pages",
|
|
"test": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@tanstack/vue-query": "^5.64.2",
|
|
"@vue/test-utils": "^2.4.6",
|
|
"@wagmi/vue": "^0.2.8",
|
|
"axios": "^1.7.9",
|
|
"chart.js": "^4.4.7",
|
|
"chartjs-plugin-zoom": "^2.2.0",
|
|
"element-plus": "^2.9.3",
|
|
"kraiken-lib": "file:../kraiken-lib",
|
|
"sass": "^1.83.4",
|
|
"viem": "^2.22.13",
|
|
"vitest": "^3.0.4",
|
|
"vue": "^3.5.13",
|
|
"vue-router": "^4.2.5",
|
|
"vue-tippy": "^6.6.0",
|
|
"vue-toastification": "^2.0.0-rc.5"
|
|
},
|
|
"devDependencies": {
|
|
"@iconify/vue": "^4.3.0",
|
|
"@tsconfig/node22": "^22.0.0",
|
|
"@types/node": "^22.10.7",
|
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
"@vue/tsconfig": "^0.7.0",
|
|
"gh-pages": "^6.1.1",
|
|
"jsdom": "^27.0.0",
|
|
"npm-run-all2": "^7.0.2",
|
|
"typescript": "~5.7.3",
|
|
"vite": "^6.0.11",
|
|
"vite-plugin-vue-devtools": "^7.7.0",
|
|
"vue-tsc": "^2.2.0"
|
|
}
|
|
}
|