Skip to content

Commit

Permalink
update snapshots and fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Mar 6, 2024
1 parent 571b765 commit 90ca6ad
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 18 deletions.
3 changes: 2 additions & 1 deletion packages/houdini-svelte/src/plugin/artifactData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ describe('load', () => {
},
"types": {},
"defaults": {}
"defaults": {},
"runtimeScalars": {}
},
"policy": "CacheOrNetwork",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ test('pagination arguments stripped from key', async function () {
"defaults": {
"first": 10
}
},
"runtimeScalars": {}
}
};
Expand Down Expand Up @@ -414,7 +416,9 @@ test('pagination arguments stays in key as it s a SinglePage Mode', async functi
"defaults": {
"first": 10
}
},
"runtimeScalars": {}
}
};
Expand Down Expand Up @@ -518,7 +522,9 @@ test('offset based pagination marks appropriate field', async function () {
"defaults": {
"limit": 10
}
},
"runtimeScalars": {}
}
};
Expand Down Expand Up @@ -784,7 +790,9 @@ test('cursor as scalar gets the right pagination query argument types', async fu
"defaults": {
"first": 10
}
},
"runtimeScalars": {}
},
"policy": "CacheOrNetwork",
Expand Down Expand Up @@ -1152,7 +1160,9 @@ test("sibling aliases don't get marked", async function () {
"defaults": {
"first": 10
}
},
"runtimeScalars": {}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,8 @@ test('fragment argument passed to directive', async function () {
},
"types": {},
"defaults": {}
"defaults": {},
"runtimeScalars": {}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ test('adds internal documents to schema', async function () {
Infinite
SinglePage
}
scalar ViewerIDFromSession
`)
})

Expand Down Expand Up @@ -179,6 +181,8 @@ test('list operations are included', async function () {
SinglePage
}
scalar ViewerIDFromSession
directive @User_delete repeatable on FIELD
`)

Expand Down Expand Up @@ -285,6 +289,8 @@ test('list operations are included but delete directive should not be in when we
SinglePage
}
scalar ViewerIDFromSession
directive @User_delete repeatable on FIELD
`)

Expand Down Expand Up @@ -403,5 +409,7 @@ test("writing twice doesn't duplicate definitions", async function () {
Infinite
SinglePage
}
scalar ViewerIDFromSession
`)
})
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ describe('typescript', function () {
};
"types": {};
"defaults": {};
"runtimeScalars": {};
};
};
`)
Expand Down Expand Up @@ -353,6 +354,7 @@ describe('typescript', function () {
};
"types": {};
"defaults": {};
"runtimeScalars": {};
};
};
`)
Expand Down Expand Up @@ -865,6 +867,7 @@ describe('typescript', function () {
};
"types": {};
"defaults": {};
"runtimeScalars": {};
};
"policy": "CacheOrNetwork";
"partial": false;
Expand Down Expand Up @@ -1128,6 +1131,7 @@ describe('typescript', function () {
};
};
"defaults": {};
"runtimeScalars": {};
};
};
`)
Expand Down Expand Up @@ -1356,6 +1360,7 @@ describe('typescript', function () {
};
};
"defaults": {};
"runtimeScalars": {};
};
"policy": "CacheOrNetwork";
"partial": false;
Expand Down Expand Up @@ -2289,6 +2294,7 @@ describe('typescript', function () {
};
"types": {};
"defaults": {};
"runtimeScalars": {};
};
"policy": "CacheOrNetwork";
"partial": false;
Expand Down Expand Up @@ -2693,6 +2699,7 @@ describe('typescript', function () {
};
};
"defaults": {};
"runtimeScalars": {};
};
};
`)
Expand Down Expand Up @@ -2809,7 +2816,8 @@ describe('typescript', function () {
},
"types": {},
"defaults": {}
"defaults": {},
"runtimeScalars": {}
},
"policy": "CacheOrNetwork",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@ test('thread query variables to inner fragments', async function () {
},
"types": {},
"defaults": {}
"defaults": {},
"runtimeScalars": {}
},
"policy": "CacheOrNetwork",
Expand Down Expand Up @@ -1028,7 +1029,9 @@ test('persists fragment variables in artifact', async function () {
"defaults": {
"name": "Hello",
"cool": true
}
},
"runtimeScalars": {}
}
};
Expand Down Expand Up @@ -1203,7 +1206,8 @@ test('variables referenced deeply in objects', async function () {
},
"types": {},
"defaults": {}
"defaults": {},
"runtimeScalars": {}
}
};
Expand Down
16 changes: 12 additions & 4 deletions packages/houdini/src/codegen/transforms/paginate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,9 @@ test('embeds node pagination query as a separate document', async function () {
"defaults": {
"first": 10
}
},
"runtimeScalars": {}
},
"policy": "CacheOrNetwork",
Expand Down Expand Up @@ -1021,7 +1023,9 @@ test('embeds custom pagination query as a separate document', async function ()
"defaults": {
"first": 10
}
},
"runtimeScalars": {}
},
"policy": "CacheOrNetwork",
Expand Down Expand Up @@ -1810,7 +1814,9 @@ test('generated query has same refetch spec', async function () {
"defaults": {
"first": 10,
"after": "1234"
}
},
"runtimeScalars": {}
},
"policy": "CacheOrNetwork",
Expand Down Expand Up @@ -2073,7 +2079,9 @@ test('default defaultPaginateMode to SinglePage', async function () {
"defaults": {
"first": 10
}
},
"runtimeScalars": {}
}
};
Expand Down
1 change: 0 additions & 1 deletion packages/houdini/src/codegen/transforms/runtimeScalars.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { directive } from '@babel/types'
import * as graphql from 'graphql'

import { unwrapType, wrapType, type Config, type Document } from '../../lib'
Expand Down
2 changes: 1 addition & 1 deletion packages/houdini/src/runtime/client/plugins/cache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { beforeEach, expect, test, vi } from 'vitest'
import { createPluginHooks, HoudiniClient, type HoudiniClientConstructorArgs } from '..'
import { testConfigFile } from '../../../test'
import { Cache } from '../../cache/cache'
import { CachePolicy, PendingValue, QueryArtifact } from '../../lib'
import { CachePolicy, PendingValue, type QueryArtifact } from '../../lib'
import { setMockConfig } from '../../lib/config'
import { ArtifactKind, DataSource } from '../../lib/types'
import type { ClientPlugin } from '../documentStore'
Expand Down
2 changes: 1 addition & 1 deletion packages/houdini/src/runtime/client/plugins/query.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cache from '../../cache'
import { type RuntimeScalarPayload } from '../../lib'
import type { RuntimeScalarPayload } from '../../lib'
import { type SubscriptionSpec, ArtifactKind, DataSource } from '../../lib/types'
import type { ClientPlugin } from '../documentStore'
import { documentPlugin } from '../utils'
Expand Down

0 comments on commit 90ca6ad

Please sign in to comment.