Skip to content
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
File renamed without changes.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Steem Proxy Cloudflare Snippet
[![Steem Proxy CI](https://github.com/DoctorLai/steem-proxy-cloudflare/actions/workflows/ci.yaml/badge.svg)](https://github.com/DoctorLai/steem-proxy-cloudflare/actions/workflows/ci.yaml) [![Steem Proxy Lint & Format](https://github.com/DoctorLai/steem-proxy-cloudflare/actions/workflows/lint.yml/badge.svg)](https://github.com/DoctorLai/steem-proxy-cloudflare/actions/workflows/lint.yml) [![Run Tests with Coverage](https://github.com/DoctorLai/steem-proxy-cloudflare/actions/workflows/testing.yaml/badge.svg)](https://github.com/DoctorLai/steem-proxy-cloudflare/actions/workflows/testing.yaml)
[![Steem Proxy CI](https://github.com/DoctorLai/steem-proxy-cloudflare/actions/workflows/ci.yaml/badge.svg)](https://github.com/DoctorLai/steem-proxy-cloudflare/actions/workflows/ci.yaml) [![Steem Proxy Lint & Format](https://github.com/DoctorLai/steem-proxy-cloudflare/actions/workflows/lint.yml/badge.svg)](https://github.com/DoctorLai/steem-proxy-cloudflare/actions/workflows/lint.yml) [![Run Tests with Coverage](https://github.com/DoctorLai/steem-proxy-cloudflare/actions/workflows/coverage.yaml/badge.svg)](https://github.com/DoctorLai/steem-proxy-cloudflare/actions/workflows/coverage.yaml)

A lightweight Cloudflare Snippet that automatically selects the healthiest Steem RPC node, ensuring stable, low-latency JSON-RPC access.

Expand Down Expand Up @@ -35,6 +35,11 @@ Add a DNS record that points to ip `192.0.2.1` indicating no server will be rout
npm test
```

## Test Coverage
```bash
npx vitest run --coverage
```

## Deploy
```bash
npm run deploy
Expand Down
6 changes: 4 additions & 2 deletions vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ export default defineConfig({
reporter: ['text', 'html', 'json', 'json-summary'],
reportsDirectory: './coverage',
thresholds: {
lines: 80,
statements: 80,
lines: 96,
statements: 96,
functions: 100,
branches: 88,
},
},
},
Expand Down