Skip to content

Can not run with apollo-server@3 #19

@heeju

Description

@heeju

I upgraded apollo-server-express to 3.0.2
then, I ran test with apollo-server-integration-testing and got the error.

error TS2740: Type 'ApolloServer<ExpressContext>' is missing the following properties from type 'ApolloServer': supportsSubscriptions, supportsUploads, setGraphQLPath, willStart, and 2 more.

    14       apolloServer
             ~~~~~~~~~~~~

      node_modules/apollo-server-integration-testing/dist/index.d.ts:9:5
        9     apolloServer: ApolloServer;
              ~~~~~~~~~~~~
        The expected type comes from property 'apolloServer' which is declared here on type 'TestClientConfig'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions