Skip to content

Commit c5b8e89

Browse files
committed
Add "npm test" target
1 parent 4ec9634 commit c5b8e89

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"scripts": {
99
"prepare": "node .husky/install.mjs",
1010
"build": "npm run build --workspaces",
11+
"test": "./testing/test.sh",
1112
"typecheck": "npm run typecheck --workspaces",
1213
"format:check": "npm run format:check --workspaces",
1314
"lint-staged": "lint-staged"

testing/test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
python3 -m venv .venv
4+
source .venv/bin/activate
5+
pip3 install aiohttp protobuf
6+
7+
npm run build && SERVER=test_v2 python3 testing/hrana-test-server/server_v2.py npm test --prefix packages/libsql-client

0 commit comments

Comments
 (0)