File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ function clean() {
28
28
}
29
29
30
30
function isPersistenceEnabled ( ) {
31
- return process . env . DISABLE_FIRESTORE_PERSISTENCE !== 'true ' ;
31
+ return process . env . INCLUDE_FIRESTORE_PERSISTENCE !== 'false ' ;
32
32
}
33
33
34
34
function copyTests ( ) {
@@ -72,9 +72,9 @@ function copyTests() {
72
72
import '${ firebaseFirestoreSdk } ';
73
73
74
74
if (typeof process === 'undefined') {
75
- process = { env: { DISABLE_FIRESTORE_PERSISTENCE : '${ ! isPersistenceEnabled ( ) } ' } } as any;
75
+ process = { env: { INCLUDE_FIRESTORE_PERSISTENCE : '${ isPersistenceEnabled ( ) } ' } } as any;
76
76
} else {
77
- process.env.DISABLE_FIRESTORE_PERSISTENCE = '${ ! isPersistenceEnabled ( ) } ';
77
+ process.env.INCLUDE_FIRESTORE_PERSISTENCE = '${ isPersistenceEnabled ( ) } ';
78
78
}
79
79
`
80
80
)
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.1" ,
4
4
"private" : true ,
5
5
"scripts" : {
6
- "build:dependencies " : " cd ../../ ; yarn build" ,
7
- "build:persistence" : " DISABLE_FIRESTORE_PERSISTENCE=false gulp compile-tests" ,
8
- "build:memory" : " DISABLE_FIRESTORE_PERSISTENCE=true gulp compile-tests" ,
6
+ "build:deps " : " cd ../../ ; yarn build" ,
7
+ "build:persistence" : " INCLUDE_FIRESTORE_PERSISTENCE=true gulp compile-tests" ,
8
+ "build:memory" : " INCLUDE_FIRESTORE_PERSISTENCE=false gulp compile-tests" ,
9
9
"test" : " yarn build:memory; karma start --single-run; yarn build:persistence; karma start --single-run;" ,
10
10
"test:persistence" : " yarn build:persistence; karma start --single-run" ,
11
11
"test:memory" : " yarn build:memory; karma start --single-run" ,
12
- "test:debug:persistence" : " yarn build:dependencies ; yarn build:persistence; karma start --auto-watch --browsers Chrome" ,
13
- "test:debug:memory" : " yarn build:dependencies ; yarn build:memory; karma start --single-run"
12
+ "test:debug:persistence" : " yarn build:deps ; yarn build:persistence; karma start --auto-watch --browsers Chrome" ,
13
+ "test:debug:memory" : " yarn build:deps ; yarn build:memory; karma start --single-run"
14
14
},
15
15
"devDependencies" : {
16
16
"@types/mocha" : " 7.0.1" ,
You can’t perform that action at this time.
0 commit comments