console/integration-tests/testkit/cli.ts
Kamil Kisiela 20e3129caa
$ prettier <all> (#46)
Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
2022-05-24 16:31:53 +03:00

12 lines
472 B
TypeScript

import * as utils from 'dockest/test-helper';
import { run } from '../../packages/libraries/cli/src/index';
const registryAddress = utils.getServiceAddress('server', 3001);
export async function schemaPublish(args: string[]) {
return run(['schema:publish', `--registry`, `http://${registryAddress}/graphql`, ...args]);
}
export async function schemaCheck(args: string[]) {
return run(['schema:check', `--registry`, `http://${registryAddress}/graphql`, ...args]);
}