Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Dec 10, 2023
1 parent 6cb7f77 commit 3410471
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 33 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prepare": "husky install",
"dev": "pnpm --filter @0no-co/graphqlsp dev",
"launch-debug": "./scripts/launch-debug.sh",
"test:e2e": "vitest graphqlsp"
"test:e2e": "vitest run --single-thread"
},
"prettier": {
"singleQuote": true,
Expand Down
32 changes: 0 additions & 32 deletions test/e2e/client-preset.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,38 +341,6 @@ List out all Pokémon, optionally in pages`
"name": "__typename",
"sortText": "14__typename",
},
{
"kind": "string",
"kindModifiers": "",
"name": "\\\\n fragment pokemonFields on Pokemon {\\\\n id\\\\n name\\\\n attacks {\\\\n fast {\\\\n damage\\\\n name\\\\n }\\\\n }\\\\n }\\\\n",
"replacementSpan": {
"end": {
"line": 10,
"offset": 1,
},
"start": {
"line": 3,
"offset": 39,
},
},
"sortText": "11",
},
{
"kind": "string",
"kindModifiers": "",
"name": "\\\\n query Pok($limit: Int!) {\\\\n pokemons(limit: $limit) {\\\\n id\\\\n name\\\\n fleeRate\\\\n classification\\\\n ...pokemonFields\\\\n ...weaknessFields\\\\n __typename\\\\n }\\\\n }\\\\n",
"replacementSpan": {
"end": {
"line": 10,
"offset": 1,
},
"start": {
"line": 3,
"offset": 39,
},
},
"sortText": "11",
},
]
`);
}, 30000);
Expand Down
5 changes: 5 additions & 0 deletions test/e2e/fragments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ describe('Fragments', () => {
tmpfile: outFilePosts,
} satisfies ts.server.protocol.SavetoRequestArgs);

server.sendCommand('saveto', {
file: outFilePosts,
tmpfile: outFilePosts,
} satisfies ts.server.protocol.SavetoRequestArgs);

await waitForExpect(() => {
expect(fs.readFileSync(outFilePosts, 'utf-8')).toContain(
`as typeof import('./Posts.generated').PostsListDocument`
Expand Down

0 comments on commit 3410471

Please sign in to comment.