-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TS Integration Tests Framework (#1244)
Co-authored-by: sampocs <[email protected]> Co-authored-by: sampocs <[email protected]> Co-authored-by: riley-stride <[email protected]> Co-authored-by: Riley Edmunds <[email protected]> Co-authored-by: Aidan Salzmann <[email protected]> Co-authored-by: vish-stride <[email protected]>
- Loading branch information
1 parent
d6e4e68
commit b6f4d2e
Showing
13 changed files
with
4,363 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,5 @@ vue/* | |
!.vscode/settings.json | ||
|
||
.ipynb_checkpoints/* | ||
|
||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
save-prefix='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"trailingComma": "all", | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": false, | ||
"printWidth": 80 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
### running the tests | ||
|
||
```bash | ||
# build stride locally and run dokcernet | ||
(cd ../.. && make sync && make start-docker build=sgr) | ||
|
||
# install deps | ||
pnpm i | ||
|
||
# run tests | ||
pnpm test | ||
``` | ||
|
||
IMPORTANT: `@cosmjs/*` dependencies must match the versions used by stridejs. To get those versions, run e.g. `pnpm why @cosmjs/amino`. | ||
|
||
### debugging (vscode) | ||
|
||
- open command palette: `Shift + Command + P (Mac) / Ctrl + Shift + P (Windows/Linux)` | ||
- run the `Debug: Create JavaScript Debug Terminal` command | ||
- set breakpoints | ||
- run `pnpm test` | ||
|
||
### test new protobufs | ||
|
||
- go to https://github.com/Stride-Labs/stridejs | ||
- update the config in `scripts/clone_repos.ts` to point to the new `stride/cosmos-sdk/ibc-go` version | ||
- run `pnpm i` | ||
- run `pnpm codegen` | ||
- run `git commit...` | ||
- run `git push` | ||
- get the current `stridejs` commit using `git rev-parse HEAD` | ||
- in the integration tests (this project): | ||
- update the `stridejs` dependency commit hash in `package.json` | ||
- `pnpm i` | ||
- `pnpm test` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "stride-integration-tests", | ||
"version": "1.0.0", | ||
"description": "integration tests for stride chain", | ||
"scripts": { | ||
"test": "vitest run", | ||
"test-watch": "vitest watch" | ||
}, | ||
"keywords": [ | ||
"wow", | ||
"much", | ||
"liquidity" | ||
], | ||
"author": "Stride Labs", | ||
"license": "ISC", | ||
"dependencies": { | ||
"@cosmjs/amino": "0.32.4", | ||
"@cosmjs/encoding": "0.32.4", | ||
"@cosmjs/math": "0.32.4", | ||
"@cosmjs/proto-signing": "0.32.4", | ||
"@cosmjs/stargate": "0.32.4", | ||
"@cosmjs/tendermint-rpc": "0.32.4", | ||
"@cosmology/lcd": "0.13.4", | ||
"@noble/hashes": "1.4.0", | ||
"bech32": "2.0.0", | ||
"jest": "29.7.0", | ||
"prettier": "3.3.3", | ||
"stridejs": "github:Stride-Labs/stridejs#e17c404f6451bad95ef0093f2b41244248bd7ebd", | ||
"typescript": "5.5.3", | ||
"vitest": "2.0.3" | ||
}, | ||
"packageManager": "[email protected]+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a" | ||
} |
Oops, something went wrong.