File tree 3 files changed +5
-5
lines changed 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 70
70
"lint" : " eslint --cache ./" ,
71
71
"build" : " babel src/ -d lib/ --copy-files" ,
72
72
"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" ,
75
75
"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" ,
77
77
"start" : " node ./bin/parse-server" ,
78
78
"prepublish" : " npm run build"
79
79
},
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export class IAPValidationRouter extends PromiseRouter {
75
75
}
76
76
}
77
77
78
- if ( process . env . NODE_ENV == "test " && req . body . bypassAppStoreValidation ) {
78
+ if ( process . env . TESTING == "1 " && req . body . bypassAppStoreValidation ) {
79
79
return getFileForProductIdentifier ( productIdentifier , req ) ;
80
80
}
81
81
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import {nullParser} from './cli/utils/parsers';
2
2
3
3
const logsFolder = ( ( ) => {
4
4
let folder = './logs/' ;
5
- if ( typeof process !== 'undefined' && process . env . NODE_ENV === 'test ' ) {
5
+ if ( typeof process !== 'undefined' && process . env . TESTING === '1 ' ) {
6
6
folder = './test_logs/'
7
7
}
8
8
if ( process . env . PARSE_SERVER_LOGS_FOLDER ) {
You can’t perform that action at this time.
0 commit comments