mirror of
https://github.com/graphql-hive/console
synced 2026-05-15 21:29:43 +00:00
19 lines
544 B
TypeScript
19 lines
544 B
TypeScript
import * as utils from '@n1ru4l/dockest/test-helper';
|
|
import { fetch } from '@whatwg-node/fetch';
|
|
|
|
const port = 3012;
|
|
export const container = 'external_composition';
|
|
export const address = utils.getServiceAddress(container, port);
|
|
export const dockerAddress = `${container}:${port}`;
|
|
|
|
export async function history(): Promise<string[]> {
|
|
const res = await fetch(`http://${address}/_history`, {
|
|
method: 'GET',
|
|
headers: {
|
|
accept: 'application/json',
|
|
'content-type': 'application/json',
|
|
},
|
|
});
|
|
|
|
return res.json();
|
|
}
|