Properly expose TestUtils through top-level package (#3086)

This commit is contained in:
Andrew Imm
2016-11-21 05:53:16 -08:00
committed by Florent Vilmart
parent a28257b2b7
commit d137e27eb9
2 changed files with 2 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
import AppCache from './cache'; import AppCache from './cache';
//Used by tests //Used by tests
function destroyAllDataPermanently() { export function destroyAllDataPermanently() {
if (!process.env.TESTING) { if (!process.env.TESTING) {
throw 'Only supported in test environment'; throw 'Only supported in test environment';
} }
@@ -14,7 +14,3 @@ function destroyAllDataPermanently() {
} }
})); }));
} }
export {
destroyAllDataPermanently
}

View File

@@ -4,7 +4,7 @@ import FileSystemAdapter from 'parse-server-fs-adapter'
import InMemoryCacheAdapter from './Adapters/Cache/InMemoryCacheAdapter' import InMemoryCacheAdapter from './Adapters/Cache/InMemoryCacheAdapter'
import NullCacheAdapter from './Adapters/Cache/NullCacheAdapter' import NullCacheAdapter from './Adapters/Cache/NullCacheAdapter'
import RedisCacheAdapter from './Adapters/Cache/RedisCacheAdapter' import RedisCacheAdapter from './Adapters/Cache/RedisCacheAdapter'
import TestUtils from './TestUtils'; import * as TestUtils from './TestUtils';
import { useExternal } from './deprecated'; import { useExternal } from './deprecated';
import { getLogger } from './logger'; import { getLogger } from './logger';