mirror of
https://github.com/graphql-hive/console
synced 2026-05-20 15:49:39 +00:00
Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com> Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
19 lines
536 B
TypeScript
19 lines
536 B
TypeScript
import * as utils from '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();
|
|
}
|