console/integration-tests/testkit/cli.ts
Kamil Kisiela dc3bc1ec87 Hello
2022-05-18 09:26:57 +02:00

22 lines
514 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,
]);
}