Skip to content

Commit 37e1f0f

Browse files
Update test configuration
1 parent ce47ef8 commit 37e1f0f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

integration/firestore/gulpfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function clean() {
2828
}
2929

3030
function isPersistenceEnabled() {
31-
return process.env.DISABLE_FIRESTORE_PERSISTENCE !== 'true';
31+
return process.env.INCLUDE_FIRESTORE_PERSISTENCE !== 'false';
3232
}
3333

3434
function copyTests() {
@@ -72,9 +72,9 @@ function copyTests() {
7272
import '${firebaseFirestoreSdk}';
7373
7474
if (typeof process === 'undefined') {
75-
process = { env: { DISABLE_FIRESTORE_PERSISTENCE: '${!isPersistenceEnabled()}' } } as any;
75+
process = { env: { INCLUDE_FIRESTORE_PERSISTENCE: '${isPersistenceEnabled()}' } } as any;
7676
} else {
77-
process.env.DISABLE_FIRESTORE_PERSISTENCE = '${!isPersistenceEnabled()}';
77+
process.env.INCLUDE_FIRESTORE_PERSISTENCE = '${isPersistenceEnabled()}';
7878
}
7979
`
8080
)

integration/firestore/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"version": "1.0.1",
44
"private": true,
55
"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",
99
"test": "yarn build:memory; karma start --single-run; yarn build:persistence; karma start --single-run;",
1010
"test:persistence": " yarn build:persistence; karma start --single-run",
1111
"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"
1414
},
1515
"devDependencies": {
1616
"@types/mocha": "7.0.1",

0 commit comments

Comments
 (0)