mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
12 lines
472 B
TypeScript
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]);
|
|
}
|