Fix adapter imports
This commit is contained in:
@@ -239,4 +239,11 @@ describe('server', () => {
|
|||||||
expect(typeof ParseServer.default.createLiveQueryServer).toEqual('function');
|
expect(typeof ParseServer.default.createLiveQueryServer).toEqual('function');
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('exposes all the "core" adapters', done => {
|
||||||
|
expect(ParseServer.S3Adapter).toThrow("S3Adapter requires option 'accessKey' or env. variable S3_ACCESS_KEY");
|
||||||
|
expect(ParseServer.GCSAdapter).toThrow('GCSAdapter requires an projectId');
|
||||||
|
expect(ParseServer.FileSystemAdapter).toThrow();
|
||||||
|
done();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
10
src/index.js
10
src/index.js
@@ -1,8 +1,8 @@
|
|||||||
import winston from 'winston';
|
import winston from 'winston';
|
||||||
import ParseServer from './ParseServer';
|
import ParseServer from './ParseServer';
|
||||||
import { GCSAdapter } from 'parse-server-gcs-adapter';
|
import GCSAdapter from 'parse-server-gcs-adapter';
|
||||||
import { S3Adapter } from 'parse-server-s3-adapter';
|
import S3Adapter from 'parse-server-s3-adapter';
|
||||||
import { FileSystemAdapter } from 'parse-server-fs-adapter';
|
import FileSystemAdapter from 'parse-server-fs-adapter';
|
||||||
|
|
||||||
if (process.env.VERBOSE || process.env.VERBOSE_PARSE_SERVER) {
|
if (process.env.VERBOSE || process.env.VERBOSE_PARSE_SERVER) {
|
||||||
winston.level = 'silly';
|
winston.level = 'silly';
|
||||||
|
|||||||
Reference in New Issue
Block a user