Skip to content

Commit d137e27

Browse files
andrewimmflovilmart
authored andcommitted
Properly expose TestUtils through top-level package (#3086)
1 parent a28257b commit d137e27

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/TestUtils.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import AppCache from './cache';
22

33
//Used by tests
4-
function destroyAllDataPermanently() {
4+
export function destroyAllDataPermanently() {
55
if (!process.env.TESTING) {
66
throw 'Only supported in test environment';
77
}
@@ -14,7 +14,3 @@ function destroyAllDataPermanently() {
1414
}
1515
}));
1616
}
17-
18-
export {
19-
destroyAllDataPermanently
20-
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import FileSystemAdapter from 'parse-server-fs-adapter'
44
import InMemoryCacheAdapter from './Adapters/Cache/InMemoryCacheAdapter'
55
import NullCacheAdapter from './Adapters/Cache/NullCacheAdapter'
66
import RedisCacheAdapter from './Adapters/Cache/RedisCacheAdapter'
7-
import TestUtils from './TestUtils';
7+
import * as TestUtils from './TestUtils';
88
import { useExternal } from './deprecated';
99
import { getLogger } from './logger';
1010

0 commit comments

Comments
 (0)