feat: Updated typescript tests
This commit is contained in:
parent
a3207369ed
commit
692a54b059
|
@ -1 +1,3 @@
|
|||
/target
|
||||
/node_modules
|
||||
/test-ledger
|
|
@ -1,5 +0,0 @@
|
|||
node_modules/
|
||||
test-ledger/
|
||||
Cargo.lock
|
||||
target/
|
||||
lite-rpc
|
|
@ -1 +0,0 @@
|
|||
export const url = "http://127.0.0.1:3000";
|
|
@ -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"
|
|
@ -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,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export const url = "http://127.0.0.1:9000";
|
Loading…
Reference in New Issue