Skip to content

Commit

Permalink
Test indexers if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa committed Aug 28, 2024
1 parent e9379eb commit 279f821
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions template/ts/files/tests/generatedconfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ describe.each(TestSource.chains())('helix chain config check -> $_data.code', (c
})).toBeTruthy();
});

test.each(chain.indexers)('should be defined correct indexer', (indexer) => {
expect(Object.values(['thegraph', 'ponder', 'hyperindex'])).toContain(indexer.type);
});
if (chain.indexers.length) {
test.each(chain.indexers)('should be defined correct indexer', (indexer) => {
expect(Object.values(['thegraph', 'ponder', 'hyperindex'])).toContain(indexer.type);
});
}

test.each(chain.messagers)('should be defined messagers address', (messager) => {
expect(messager.address).toBeTruthy();
Expand Down

0 comments on commit 279f821

Please sign in to comment.