New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apollo-server-testing

Package Overview
Dependencies
Maintainers
1
Versions
197
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-server-testing

Test utils for apollo-server

  • 2.25.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
54K
decreased by-4.29%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 04 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc