Skip to content

Commit 38a525b

Browse files
flovilmartnatanrolnik
authored andcommitted
chore(testing): only use TESTING=1 as the testing flag (#3877)
1 parent c99fdea commit 38a525b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@
7070
"lint": "eslint --cache ./",
7171
"build": "babel src/ -d lib/ --copy-files",
7272
"pretest": "npm run lint",
73-
"test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 NODE_ENV=test TESTING=1 $COVERAGE_OPTION jasmine",
74-
"test:win": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 NODE_ENV=test TESTING=1 jasmine",
73+
"test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 $COVERAGE_OPTION jasmine",
74+
"test:win": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 jasmine",
7575
"coverage": "cross-env COVERAGE_OPTION='./node_modules/.bin/nyc' npm test",
76-
"coverage:win": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 NODE_ENV=test TESTING=1 node ./node_modules/.bin/nyc ./node_modules/jasmine/bin/jasmine.js",
76+
"coverage:win": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 node ./node_modules/.bin/nyc ./node_modules/jasmine/bin/jasmine.js",
7777
"start": "node ./bin/parse-server",
7878
"prepublish": "npm run build"
7979
},

src/Routers/IAPValidationRouter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class IAPValidationRouter extends PromiseRouter {
7575
}
7676
}
7777

78-
if (process.env.NODE_ENV == "test" && req.body.bypassAppStoreValidation) {
78+
if (process.env.TESTING == "1" && req.body.bypassAppStoreValidation) {
7979
return getFileForProductIdentifier(productIdentifier, req);
8080
}
8181

src/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {nullParser} from './cli/utils/parsers';
22

33
const logsFolder = (() => {
44
let folder = './logs/';
5-
if (typeof process !== 'undefined' && process.env.NODE_ENV === 'test') {
5+
if (typeof process !== 'undefined' && process.env.TESTING === '1') {
66
folder = './test_logs/'
77
}
88
if (process.env.PARSE_SERVER_LOGS_FOLDER) {

0 commit comments

Comments
 (0)