Skip to content

Commit

Permalink
Try to skip Multichain tests using jest
Browse files Browse the repository at this point in the history
  - Previous solution assumed we used Mocha, but we're using Jest
  • Loading branch information
MantisClone committed Dec 24, 2022
1 parent bb8cef5 commit d0ebaad
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/payment-detection/test/eth/info-retriever.test.ts
Expand Up @@ -45,14 +45,11 @@ describe('api/eth/info-retriever', () => {
await expect(infoRetreiver.getTransferEvents()).rejects.toThrowError();
});

describe('Multichain', function (this: Mocha.Context) {
// Skip tests if build is from external fork or API tests are disabled
// External forks cannot access secrets API keys
if (process.env.CIRCLE_PR_NUMBER || process.env.DISABLE_API_TESTS) {
console.warn('Skipping API tests');
this.skip();
}

// Skip tests if build is from external fork or API tests are disabled
// External forks cannot access secrets API keys
const describeIf =
process.env.CIRCLE_PR_NUMBER || process.env.DISABLE_API_TESTS ? describe : describe.skip;
describeIf('Multichain', () => {
// TODO temporary disable xDAI, CELO, Sokol, and Goerli
// FIXME: API-based checks should run nightly and be mocked for CI
[
Expand Down

0 comments on commit d0ebaad

Please sign in to comment.