feat: Updated typescript tests

This commit is contained in:
Lioncat2002 2022-12-06 10:27:12 +05:30
parent a3207369ed
commit 692a54b059
No known key found for this signature in database
10 changed files with 5 additions and 8 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
/target
/node_modules
/test-ledger

View File

@ -1,5 +0,0 @@
node_modules/
test-ledger/
Cargo.lock
target/
lite-rpc

View File

@ -1 +0,0 @@
export const url = "http://127.0.0.1:3000";

View File

@ -15,7 +15,7 @@
"scripts": {
"test": "jest --detectOpenHandles",
"start:lite-rpc": "lite-rpc",
"test:test-validator": "start-server-and-test 'solana-test-validator --reset --quiet & ../target/debug/lite-rpc' http://localhost:8899/health test"
"test:test-validator": "start-server-and-test 'solana-test-validator --reset --quiet & target/debug/lite-rpc --rpc-url http://localhost:8899 --websocket-url ws://localhost:8900/' http://localhost:8899/health test"
},
"devDependencies": {
"typescript": "^4.8.4"

View File

@ -11,7 +11,7 @@ use {clap::Parser, solana_cli_config::ConfigInput, std::net::SocketAddr};
"
)]
pub struct Args {
#[arg(short, long, default_value_t = SocketAddr::from(([127, 0, 0, 1], 8899)))]
#[arg(short, long, default_value_t = SocketAddr::from(([127, 0, 0, 1], 9000)))]
pub port: SocketAddr,
#[arg(short, long, default_value_t = SocketAddr::from(([127, 0, 0, 1], 8900)))]
pub subscription_port: SocketAddr,

1
tests/urls.ts Normal file
View File

@ -0,0 +1 @@
export const url = "http://127.0.0.1:9000";