File tree Expand file tree Collapse file tree 4 files changed +97
-6
lines changed
Expand file tree Collapse file tree 4 files changed +97
-6
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ Object {
1414 },
1515 " documents" : Array [
1616 Object {
17- " https://data.stackables.io/stackables-test/webhooks ?introspection=a89751eb-ef0d-4663-9530-fa683b9d8483" : Object {
18- " loader" : " stackables-webhooks/loader " ,
17+ " https://data.stackables.io/stackables-demo:prod/example1 ?introspection=a89751eb-ef0d-4663-9530-fa683b9d8483" : Object {
18+ " loader" : " codegen- stackables-webhooks" ,
1919 },
2020 },
2121 ],
@@ -28,6 +28,6 @@ Object {
2828 },
2929 },
3030 },
31- " schema" : " https://data.stackables.io/stackables-test/webhooks ?introspection=a89751eb-ef0d-4663-9530-fa683b9d8483" ,
31+ " schema" : " https://data.stackables.io/stackables-demo:prod/example1 ?introspection=a89751eb-ef0d-4663-9530-fa683b9d8483" ,
3232}
3333` ;
Original file line number Diff line number Diff line change 1+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+ exports [` Test Loader 1` ] = `
4+ Object {
5+ " definitions" : Array [
6+ Object {
7+ " directives" : Array [
8+ Object {
9+ " arguments" : Array [],
10+ " kind" : " Directive" ,
11+ " loc" : Object {
12+ " end" : 59 ,
13+ " start" : 50 ,
14+ },
15+ " name" : Object {
16+ " kind" : " Name" ,
17+ " loc" : Object {
18+ " end" : 59 ,
19+ " start" : 51 ,
20+ },
21+ " value" : " register" ,
22+ },
23+ },
24+ ],
25+ " kind" : " FragmentDefinition" ,
26+ " loc" : Object {
27+ " end" : 68 ,
28+ " start" : 0 ,
29+ },
30+ " name" : Object {
31+ " kind" : " Name" ,
32+ " loc" : Object {
33+ " end" : 31 ,
34+ " start" : 9 ,
35+ },
36+ " value" : " CleanupAfterNodeDelete" ,
37+ },
38+ " selectionSet" : Object {
39+ " kind" : " SelectionSet" ,
40+ " loc" : Object {
41+ " end" : 68 ,
42+ " start" : 60 ,
43+ },
44+ " selections" : Array [
45+ Object {
46+ " alias" : undefined ,
47+ " arguments" : Array [],
48+ " directives" : Array [],
49+ " kind" : " Field" ,
50+ " loc" : Object {
51+ " end" : 66 ,
52+ " start" : 64 ,
53+ },
54+ " name" : Object {
55+ " kind" : " Name" ,
56+ " loc" : Object {
57+ " end" : 66 ,
58+ " start" : 64 ,
59+ },
60+ " value" : " id" ,
61+ },
62+ " selectionSet" : undefined ,
63+ },
64+ ],
65+ },
66+ " typeCondition" : Object {
67+ " kind" : " NamedType" ,
68+ " loc" : Object {
69+ " end" : 49 ,
70+ " start" : 35 ,
71+ },
72+ " name" : Object {
73+ " kind" : " Name" ,
74+ " loc" : Object {
75+ " end" : 49 ,
76+ " start" : 35 ,
77+ },
78+ " value" : " DataEntityNode" ,
79+ },
80+ },
81+ },
82+ ],
83+ " kind" : " Document" ,
84+ " loc" : Object {
85+ " end" : 68 ,
86+ " start" : 0 ,
87+ },
88+ }
89+ ` ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import axios from 'axios'
44
55test ( 'Configuration snapshot' , ( ) => {
66 const config = getConfiguration ( {
7- accountSlug : 'stackables-test/webhooks ' ,
7+ accountSlug : 'stackables-demo:prod/example1 ' ,
88 generatedFile : './src/generated/webhooks.ts' ,
99 introspectionToken : 'a89751eb-ef0d-4663-9530-fa683b9d8483' ,
1010 } )
@@ -14,7 +14,7 @@ test('Configuration snapshot', () => {
1414
1515test ( 'Configuration introspection is working correctly' , async ( ) => {
1616 const { schema } = getConfiguration ( {
17- accountSlug : 'stackables-test/webhooks ' ,
17+ accountSlug : 'stackables-demo:prod/example1 ' ,
1818 generatedFile : './src/generated/webhooks.ts' ,
1919 introspectionToken : 'a89751eb-ef0d-4663-9530-fa683b9d8483' ,
2020 } )
Original file line number Diff line number Diff line change 11import loader from '../src'
22
3+ jest . setTimeout ( 30000 )
4+
35test ( 'Test Loader' , async ( ) => {
4- const output = await loader ( 'https://data.stackables.io/stackables-test/webhooks ?introspection=a89751eb-ef0d-4663-9530-fa683b9d8483' )
6+ const output = await loader ( 'https://data.stackables.io/stackables-demo:prod/example1 ?introspection=a89751eb-ef0d-4663-9530-fa683b9d8483' )
57 expect ( output ) . toMatchSnapshot ( )
68} )
You can’t perform that action at this time.
0 commit comments