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