Boost development speed and confidence with automated Jest type-test generation, schema validation, and smart resolver mock intergration setups.
Get Started
Apollo Packages:
*Choose from relevant Jest Packages
JS Jest Packages:
TS Jest Packages via Babel:
TS Jest Packages via TS-Jest:
Install
Required
Packages
Test Server Setup
1. Add a test script to your ‘package.json’ file: E.g. “test”: “jest --watchAll”
2. Copy test server boilerplate
Requirements
* For type-tests on the basis of schemas, we are expecting a ‘typeDefs’ declaration, which consists in a valid Schema Definition Language (SDL) string.
* For resolvers, we are expecting a ‘resolvers’ declaration, which consists in a map of functions that populate data for individual schema fields.