Properly expose TestUtils through top-level package (#3086)
This commit is contained in:
committed by
Florent Vilmart
parent
a28257b2b7
commit
d137e27eb9
@@ -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
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user