This package has been deprecated

    Author message:

    This package has been removed from Apollo Server 3. Use the server.executeOperation API instead; see https://www.apollographql.com/docs/apollo-server/migration/#apollo-server-testing for details.

    apollo-server-testing
    TypeScript icon, indicating that this package has built-in type declarations

    2.25.2 • Public • Published

    apollo-server-testing

    This deprecated package contains a function createTestClient which is a very thin wrapper around the Apollo Server server.executeOperation method.

    Code that uses this package looks like the following, where server is an ApolloServer:

    const { createTestClient } = require('apollo-server-testing');
    
    const { query, mutate } = createTestClient(server);
    
    await query({ query: QUERY });
    await mutate({ mutation: MUTATION });

    We recommend you stop using this package and replace the above code with the equivalent:

    await server.executeOperation({ query: QUERY });
    await server.executeOperation({ query: MUTATION });

    This package will not be distributed as part of Apollo Server 3.

    Install

    npm i apollo-server-testing

    DownloadsWeekly Downloads

    208,354

    Version

    2.25.2

    License

    MIT

    Unpacked Size

    294 kB

    Total Files

    19

    Last publish

    Collaborators

    • apollo-bot