Skip to content

Commit 604184d

Browse files
committed
Update apollo-server to version 3 and graphql to version 16
1 parent e76ca51 commit 604184d

File tree

4 files changed

+1037
-1120
lines changed

4 files changed

+1037
-1120
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { createTestClient } from 'apollo-server-integration-testing';
1717
import { createApolloServer } from './myServerCreationCode';
1818

1919
const apolloServer = await createApolloServer();
20+
await apolloServer.start();
2021
const { query, mutate } = createTestClient({
2122
apolloServer,
2223
});

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
"prettier": "prettier --check src"
2626
},
2727
"dependencies": {
28-
"apollo-server-core": "^2.9.13",
29-
"apollo-server-express": "^2.9.13",
28+
"apollo-server-core": "^3.6.7",
29+
"apollo-server-express": "^3.6.7",
3030
"express": "^4.17.1",
3131
"node-mocks-http": "^1.8.0"
3232
},
3333
"devDependencies": {
3434
"@types/jest": "^26.0.15",
35-
"graphql": "0.12.0",
35+
"graphql": "^16.3.0",
3636
"husky": "^4.2.5",
3737
"jest": "^26.6.3",
3838
"lint-staged": "^10.2.11",
@@ -41,7 +41,7 @@
4141
"typescript": "^4.2.4"
4242
},
4343
"peerDependencies": {
44-
"graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
44+
"graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
4545
},
4646
"husky": {
4747
"hooks": {

src/__tests__/createTestClient.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ describe('createTestClient', () => {
1515
}
1616
}`;
1717

18+
beforeAll(async () => {
19+
await apolloServer.start();
20+
});
21+
1822
beforeEach(() => {
1923
database.books = [
2024
{

0 commit comments

Comments
 (0)