Skip to content

Commit a79312c

Browse files
authored
refactor ♻️: Organise test functions into namespaces (Moonsong-Labs#180)
* feat: ✨ new test api builder * feat: ✨ added wait namespace * feat: ✨ added extra fns to namespaces * refactor: ♻️ Tidy code * chore: 📦 Update Pkg versions * merge * fix merge conflicts * fix: 🐛 Fix the conflicts * feat: ✨ Added Reorg function * feat: ✨ added docker namespace * feat: ✨ Add dropAll fns to docker NS * fix: 🐛 Catch errors on dropAll for docker * refactor: ♻️ Convert to using tiny-invariant * lint * fix: 🐛 Fix zombie invariant * docs: 📝 Added Docs for functions * perf: ⚡ Converted static waits to polls * fmt * fix: 🐛 Fix Test * refactor: ♻️ Deprecate ts Namespaces for ES Modules
1 parent c7f19d4 commit a79312c

36 files changed

+2140
-1564
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Now, navigate to the `/test` directory and run:
7575
pnpm typegen
7676
```
7777

78-
From there you should be able to see the new RPC in your tests for the `BspNetApi` object.
78+
From there you should be able to see the new RPC in your tests for the `EnrichedBspApi` object.
7979

8080
> [!TIP]
8181
> If the TS is still yelling at you with red squiggles, use command pallete to restart language server.

api-augment/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
},
2626
"license": "ISC",
2727
"dependencies": {
28-
"@polkadot/api": "12.3.1",
29-
"@polkadot/api-base": "12.3.1",
30-
"@polkadot/rpc-core": "12.3.1",
31-
"@polkadot/typegen": "12.3.1",
32-
"@polkadot/types": "^12.3.1",
33-
"@polkadot/types-codec": "12.3.1",
28+
"@polkadot/api": "12.4.2",
29+
"@polkadot/api-base": "12.4.2",
30+
"@polkadot/rpc-core": "12.4.2",
31+
"@polkadot/typegen": "12.4.2",
32+
"@polkadot/types": "12.4.2",
33+
"@polkadot/types-codec": "12.4.2",
3434
"@storagehub/types-bundle": "workspace:*",
35-
"tsx": "4.17.0",
35+
"tsx": "4.19.0",
3636
"typescript": "5.5.4"
3737
}
3838
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"license": "ISC",
1919
"dependencies": {
2020
"@biomejs/biome": "1.8.3",
21-
"@types/node": "20.14.9",
22-
"typescript": "5.5.3"
21+
"@types/node": "22.5.2",
22+
"typescript": "5.5.4"
2323
}
2424
}

0 commit comments

Comments
 (0)