MCPcopy Create free account
hub / github.com/EdgeTX/buddy / targetsQuery

Function targetsQuery

src/test-utils/mocks.ts:34–68  ·  view source on GitHub ↗
(delay = 1000)

Source from the content-addressed store, hash-verified

32});
33
34export const targetsQuery = (delay = 1000): MockedResponse => ({
35 request: {
36 query: gql`
37 query ReleaseTargets($releaseId: ID!) {
38 edgeTxRelease(id: $releaseId) {
39 id
40 firmwareBundle {
41 id
42 targets {
43 id
44 code
45 name
46 }
47 }
48 }
49 }
50 `,
51 variables: {
52 releaseId: "v2.5.0",
53 },
54 },
55 result: {
56 data: {
57 edgeTxRelease: {
58 __typename: "EdgeTxRelease",
59 id: "v2.5.0",
60 firmwareBundle: {
61 id: "",
62 targets: exampleTargetsList,
63 },
64 },
65 },
66 },
67 delay,
68});
69
70const releaseDescription = times(10)
71 .map(

Callers 6

renderPageFunction · 0.90
usableFunction · 0.90
initialRenderFunction · 0.90
devFunction · 0.90
loadSuccessfullyFunction · 0.90
includePrereleasesFunction · 0.90

Calls

no outgoing calls

Tested by 1

renderPageFunction · 0.72