apollo-server/test/tests.js
Reyad Attiyat 7cd69251b6 Disable Koa integration test for NodeJS v4
Newer versions of Koa use features of ES6 that are not supported in
nodejs v4. This commits enables the Koa integration test only when run
on nodejs v6 or newer.
2017-03-19 23:02:16 -05:00

15 lines
827 B
JavaScript

const NODE_VERSION = process.version.split('.');
const NODE_MAJOR_VERSION = parseInt(NODE_VERSION[0].replace(/^v/, ''));
process.env.NODE_ENV = 'test';
require('../packages/graphql-server-core/dist/runQuery.test.js');
require('../packages/graphql-server-module-operation-store/dist/operationStore.test');
require('../packages/graphql-server-express/dist/expressApollo.test');
require('../packages/graphql-server-express/dist/connectApollo.test');
require('../packages/graphql-server-hapi/dist/hapiApollo.test');
if (NODE_MAJOR_VERSION >= 6) {
require('../packages/graphql-server-koa/dist/koaApollo.test');
}
require('../packages/graphql-server-restify/dist/restifyApollo.test');
require('../packages/graphql-server-lambda/dist/lambdaApollo.test');
require('../packages/graphql-server-express/dist/apolloServerHttp.test');