diff --git a/template/ts/files/tests/generatedconfig.test.ts b/template/ts/files/tests/generatedconfig.test.ts index 69a3524..0a4eab7 100644 --- a/template/ts/files/tests/generatedconfig.test.ts +++ b/template/ts/files/tests/generatedconfig.test.ts @@ -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();