This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it('should render loading state initially', () => { | |
| const deleteDog = { name: 'Buck', breed: 'Poodle', id: 1 }; | |
| const mocks = [ | |
| { | |
| request: { | |
| query: DELETE_DOG_MUTATION, | |
| variables: { name: 'Buck' }, | |
| }, | |
| result: { data: { deleteDog } }, | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it('should delete and give visual feedback', async () => { | |
| const deleteDog = { name: 'Buck', breed: 'Poodle', id: 1 }; | |
| const mocks = [ | |
| { | |
| request: { | |
| query: DELETE_DOG_MUTATION, | |
| variables: { name: 'Buck' }, | |
| }, | |
| result: { data: { deleteDog } }, | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { | |
| graphql, | |
| GraphQLEnumType, | |
| GraphQLType, | |
| GraphQLSchema, | |
| GraphQLObjectType, | |
| GraphQLBoolean, | |
| } = require('graphql'); | |
| const { gql } = require('graphql-tag'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { HttpLink } from 'apollo-link-http'; | |
| import * as express from 'express'; | |
| import fetch from 'node-fetch'; | |
| import { AddressInfo } from 'net'; | |
| import { execute } from 'apollo-link'; | |
| export { toPromise } from 'apollo-link'; | |
| import { ApolloServer } from './'; | |
| export const startTestServer = async (server: ApolloServer) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // TO VIEW THE WORK DONE ON LOADING EN EXPERIMENTAL CONFIG, SEE THIS BRANCH: | |
| // https://github.com/apollographql/apollo-tooling/compare/jake/experimental-config | |
| /** | |
| * Goal: rebuild apollo config to allow for easier configuration | |
| * | |
| * Ideas: | |
| * - More top-level options with fewer nested keys | |
| * - I don't think field nesting is strictly necessary, since a _lot_ | |
| * of things are duplicated between client/service projects (like includes) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { InputHTMLAttributes, useMemo, forwardRef } from 'react'; | |
| import ReactInputMask from 'react-input-mask'; | |
| import styles from './index.module.css'; | |
| type FloatingLabelInputProps = InputHTMLAttributes<HTMLInputElement> & { | |
| label: string; | |
| mask?: string; | |
| className?: string; | |
| errorMessage?: string; | |
| }; |
OlderNewer