MCPcopy Index your code
hub / github.com/subquery/subql / testIf

Function testIf

packages/cli/src/controller/project-controller.spec.ts:19–21  ·  view source on GitHub ↗
(condition: boolean, ...args: Parameters<typeof it>)

Source from the content-addressed store, hash-verified

17// Replace/Update your access token when test locally
18const testAuth = process.env.SUBQL_ACCESS_TOKEN_TEST;
19const testIf = (condition: boolean, ...args: Parameters<typeof it>) =>
20 // eslint-disable-next-line jest/valid-title, jest/no-disabled-tests
21 condition ? it(...args) : it.skip(...args);
22
23jest.setTimeout(120000);
24describe('CLI create project and delete project', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected