Testing a GraphQL Server
Fabien de Maestri
2756

Little mistake on test-Text:

it(‘Should call getPokemons when no id provided’, () => { pokemon.resolve(); expect(client.getPokemon).to.not.have.been.called; expect(client.getPokemons).to.have.been.called; });

it(‘Should call getPokemons when no id provided’, () => { pokemon.resolve(null, { id : ‘id’ });

Copy & Paste Error

Very imported (you forgot): ES6 support!!!

"scripts": { 
"test-server": "mocha --compilers js:babel-core/register schema/**/*.serverSpec.js"
}

and install:

npm i --save-dev babel-preset-stage-0
npm i --save-dev babel-preset-es2015
npm i --save-dev babel-preset-stage-2
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.