-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Integration test for transaction subscriptions (#2193)
* fix: transaction subscription mempool mapper and transaction result resolver * fix: remove console.error - this will log when there are no results * Add integration test for subscription * fix: nicely dispose of the connection * update docker compose file * update graph test * update packages * update packages * formatting * Formatting... * chore: Only update node-fetch for cross fetch * Formatting.... * feat: add subscription test * remove comments --------- Co-authored-by: Nil Amrutlal <nil.amrutlal@deptagency.com>
- Loading branch information
1 parent
a240f44
commit 42b0a1b
Showing
8 changed files
with
209 additions
and
62 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
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 |
---|---|---|
|
@@ -61,4 +61,4 @@ | |
"vite-tsconfig-paths": "^4.2.1", | ||
"vitest": "^1.6.0" | ||
} | ||
} | ||
} |
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,17 @@ | ||
import type { APIRequestContext } from '@playwright/test'; | ||
import { expect } from '@playwright/test'; | ||
import { devnetHost } from '../../e2e-base/src/constants/network.constants'; | ||
|
||
export async function triggerMining( | ||
request: APIRequestContext, | ||
chainId = '0', | ||
numberOfBlocks = 1, | ||
): Promise<void> { | ||
const response = await request.post(`${devnetHost}/make-blocks`, { | ||
data: { | ||
[chainId]: numberOfBlocks, | ||
}, | ||
}); | ||
|
||
expect(response.status()).toBe(200); | ||
} |
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
Oops, something went wrong.