Commit graph

107 commits

Author SHA1 Message Date
Jonas Helfer
e62de92ede fix: unpin port number for Koa tests (#89) 2016-08-08 15:22:58 -07:00
Jonas Helfer
8ed8eee6a4 move request.end before formatResponse (#88) 2016-08-08 14:01:21 -07:00
Jonas Helfer
ff8f1ea239 pass options to formatResponse 2016-08-05 11:42:46 -07:00
Jonas Helfer
adf57271ba log server events to logFunction (#78)
* log server events to logFunction

* update changelog
2016-08-05 11:14:56 -07:00
Nick Nance
1cfe283926 update TypeScript dependencies and documentation (#74)
* update TypeScript dependencies and documentation

* update typescript documentation
2016-08-02 10:04:15 -07:00
Jonas Helfer
5b1575db77 Merge pull request #68 from apollostack/more-tests
More tests to increase test coverage
2016-07-29 13:59:48 -07:00
Jonas Helfer
c82201ae2a fix typo 2016-07-29 13:45:32 -07:00
Jonas Helfer
c697924f98 remove unused lines in Koa 405 test 2016-07-29 13:24:00 -07:00
Jonas Helfer
333f5d1e23 test that only POST requests are allowed 2016-07-29 12:47:27 -07:00
Jonas Helfer
5faab1958b test errors when express and koa are called with wrong args 2016-07-29 12:37:02 -07:00
Jonas Helfer
11c6baf20a increase test coverage in operationStore 2016-07-29 12:16:58 -07:00
Jonas Helfer
b2279fd9f0 test validationRules option 2016-07-29 11:51:35 -07:00
Jonas Helfer
eb9926746a test formatError option 2016-07-29 11:42:05 -07:00
Jonas Helfer
cb94d5f8b4 add test for rootValue 2016-07-29 11:36:22 -07:00
Ian MacLeod
790fd30b5d Expose the Express response object to the options callback (#49)
For example, it's necessary to have the response object for mutations that set/clear cookies
2016-07-29 10:20:29 -07:00
Jonas Helfer
fe8be5d5ee add missing graphiql export for Koa (#64) 2016-07-29 10:18:30 -07:00
Jonas Helfer
5b0b7ad9eb add missing graphiql export for Koa 2016-07-28 20:22:44 -07:00
Jonas Helfer
1f2d6ca821 Add support for connect (#58)
* add support for connect

* export apolloConnect and graphiqlConnect

* update changelog
2016-07-28 20:19:39 -07:00
Bojan Hribernik
bc587b77c2 Move destroyApp() call into aterEach() mocha hook 2016-07-28 23:15:30 +02:00
Bojan Hribernik
5fa12dbdb1 Fix lint errors and remove unnecessary tests 2016-07-28 22:56:34 +02:00
Bojan Hribernik
978270f9fa Apollo koa integration 2016-07-28 20:05:05 +02:00
nnance
622a46a02e fix integration tests 2016-07-18 21:17:52 -07:00
nnance
76379b2dda fix bad merge 2016-07-18 21:13:57 -07:00
nnance
fb3d07cbfa Merge branch 'apollo-hapi' of github.com:apollostack/apollo-server into apollo-hapi 2016-07-18 21:06:30 -07:00
nnance
e03f64db72 Merge branch 'master' of github.com:apollostack/apollo-server into apollo-hapi
# Conflicts:
#	src/integrations/integrations.test.ts
2016-07-18 21:06:00 -07:00
Nick Nance
9667b5f971 add support for context 2016-07-17 17:55:21 -07:00
Nick Nance
6633e52265 add context test 2016-07-17 17:51:41 -07:00
nnance
f9bc7dec8d refactored server handler 2016-07-16 07:31:14 -07:00
nnance
6b6fcba2d2 all hapi tests passing 2016-07-16 07:12:08 -07:00
Nick Nance
9cb004c5e3 add support for format params function 2016-07-07 22:54:46 -07:00
Nick Nance
9b20769267 add check for missing post body 2016-07-07 22:47:05 -07:00
Nick Nance
a19b9830b4 added support for options as a promise 2016-07-07 22:36:44 -07:00
Nick Nance
8a3e2fdf4a allow each integration suite to be ran separately 2016-07-07 08:46:10 -07:00
Nick Nance
53cc130e51 some working integration tests 2016-07-07 06:35:48 -07:00
Nick Nance
05347ffe03 add test suite integration parameter 2016-07-07 06:35:20 -07:00
Nick Nance
033495ed1b Merge branch 'master' of github.com:apollostack/apollo-server into apollo-hapi
# Conflicts:
#	src/index.ts
2016-07-06 22:35:25 -07:00
Nick Nance
ba9a9a837d rename api (#44)
* rename api

* change express api name
2016-07-06 11:45:20 -07:00
Nick Nance
3a39e96f20 improve hapi api 2016-07-06 07:05:59 -07:00
Nick Nance
0e1c06ef57 update public api 2016-07-05 18:32:46 -07:00
Nick Nance
e1b1c9b1a2 initial working version of hapi 2016-07-05 17:25:18 -07:00
Jonas Helfer
b95ec16aaf lint 2016-07-05 14:19:55 -07:00
Jonas Helfer
68bba72ff8 add try/catch and test for rejected options 2016-07-05 14:19:14 -07:00
Jonas Helfer
782cb20864 clarify when validationRules are applied 2016-07-05 14:10:42 -07:00
Jonas Helfer
8a99ed6f33 add support for extra validation rules 2016-07-05 14:10:27 -07:00
Nick Nance
c7a9642ee4 make integration tests completely generic 2016-07-04 22:04:31 -07:00
Nick Nance
7d2eca3b96 create common apolloOptions module 2016-07-04 22:03:59 -07:00
Nick Nance
b374d42270 initial separation of integration tests 2016-07-03 08:42:59 -07:00
Nick Nance
6f566e04c7 refactor express app out of each test 2016-07-01 09:16:17 -07:00
Nick Nance
443f9b8cba remove unneeded promise import, we are using es6 2016-07-01 08:51:16 -07:00
Nick Nance
e32b202881 remove query check as to fix graphiql integration 2016-06-30 10:10:25 -07:00