-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from sablier-labs/chore/envio-updates
chore: envio updates
- Loading branch information
Showing
5 changed files
with
77 additions
and
41 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
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,40 @@ | ||
--- | ||
id: "testing" | ||
sidebar_position: 6 | ||
title: "Testing" | ||
--- | ||
|
||
import LinkPreview from "@site/src/components/LinkPreview"; | ||
|
||
## Integrating | ||
|
||
To ensure Envio indexers are delivering the same set of data as The Graph's subgraphs we've implemented a set of | ||
differentials tests over both `merkle` and `protocol` configurations. | ||
|
||
Check them out inside the `apps/[...]/test/` folders. | ||
|
||
<LinkPreview | ||
href="https://github.com/sablier-labs/v2-subgraphs" | ||
icon="github" | ||
subtitle="GitHub" | ||
title="Github - sablier-labs/v2-subgraphs: Sablier V2 Indexers" | ||
/> | ||
|
||
## Running | ||
|
||
The differentials tests are powered by Jest. Inside `test/setup/constants.ts` you will find the full configuration for | ||
these tests. This is where you'll also be able to toggle between using the local endpoint (see | ||
[development](/api/indexers/development) to bootstrap a project locally) and the hosted-service one, using the `REMOTE` | ||
flag. | ||
|
||
```bash | ||
pnpm run test | ||
``` | ||
|
||
:::info | ||
|
||
As the set of streams or campaigns grows, the final tests (full-coverage over the entire list of elements) may start | ||
timing out. We suggest either splitting them chunks or simply adding a manual limit to the number of iterations the loop | ||
can cover at once. Alternatively, one can also increase the timeout of those tests. | ||
|
||
::: |
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