Skip to content

Commit

Permalink
chore: add test-specific tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed Jul 3, 2024
1 parent 4ad9920 commit b68ba66
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
24 changes: 12 additions & 12 deletions test/checklist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const tests: Array<[string, Function]> = [
if (await chain.getConnection()) return OK
}],

["fetchHeight", async ({ platform, connectOptions }: any) => {
["Chain#fetchHeight", async ({ platform, connectOptions }: any) => {
if (platform === OCI) return NA
const chain = await platform.connect(connectOptions)
if (await chain["height"]) return OK
Expand All @@ -73,6 +73,13 @@ const tests: Array<[string, Function]> = [
if (await chain.fetchBlock()) return OK
}],

["Chain#authenticate", async ({ platform, connectOptions }: any) => {
if (platform === Namada) return NA
const chain = await platform.connect(connectOptions)
const agent = await chain.authenticate()
if (agent instanceof Agent) return OK
}],

["Chain#fetchTransaction", () => NI ],

["Chain#fetchBalance", async ({ platform, connectOptions }: any) => {
Expand Down Expand Up @@ -113,34 +120,27 @@ const tests: Array<[string, Function]> = [
if (await chain.query()) return OK
}],

["Chain#authenticate", async ({ platform, connectOptions }: any) => {
if (platform === Namada) return NA
const chain = await platform.connect(connectOptions)
const agent = await chain.authenticate()
if (agent instanceof Agent) return OK
}],

["Agent#getConnection", async ({ platform, connectOptions }: any) => {
if (platform === Namada) return NA
const chain = await platform.connect(connectOptions)
const agent = await chain.authenticate()
if (await agent.getConnection()) return OK
}],

["Agent#fetchBalance", async ({ platform, connectOptions }: any) => {
["Agent#send", async ({ platform, connectOptions }: any) => {
if (platform === Namada) return NA
if (platform === OCI) return NA
const chain = await platform.connect(connectOptions)
const agent = await chain.authenticate()
if (await agent.fetchBalance()) return OK
if (await agent.send()) return OK
}],

["Agent#send", async ({ platform, connectOptions }: any) => {
["Agent#fetchBalance", async ({ platform, connectOptions }: any) => {
if (platform === Namada) return NA
if (platform === OCI) return NA
const chain = await platform.connect(connectOptions)
const agent = await chain.authenticate()
if (await agent.send()) return OK
if (await agent.fetchBalance()) return OK
}],

["Agent#upload", async ({ platform, connectOptions }: any) => {
Expand Down
4 changes: 4 additions & 0 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "./*.ts" ]
}

0 comments on commit b68ba66

Please sign in to comment.