diff --git a/src/TestUtils.js b/src/TestUtils.js index a3befef8b3..59dfe3136b 100644 --- a/src/TestUtils.js +++ b/src/TestUtils.js @@ -1,7 +1,7 @@ import AppCache from './cache'; //Used by tests -function destroyAllDataPermanently() { +export function destroyAllDataPermanently() { if (!process.env.TESTING) { throw 'Only supported in test environment'; } @@ -14,7 +14,3 @@ function destroyAllDataPermanently() { } })); } - -export { - destroyAllDataPermanently -} diff --git a/src/index.js b/src/index.js index ec722db021..6d85bf990d 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ import FileSystemAdapter from 'parse-server-fs-adapter' import InMemoryCacheAdapter from './Adapters/Cache/InMemoryCacheAdapter' import NullCacheAdapter from './Adapters/Cache/NullCacheAdapter' import RedisCacheAdapter from './Adapters/Cache/RedisCacheAdapter' -import TestUtils from './TestUtils'; +import * as TestUtils from './TestUtils'; import { useExternal } from './deprecated'; import { getLogger } from './logger';