Skip to content

Commit b80eaeb

Browse files
committed
Modernize dependencies and test tools
1 parent c1df971 commit b80eaeb

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"scripts": {
1010
"build": "./node_modules/.bin/babel src/ -d lib/",
11-
"test": "TESTING=1 babel-node ./node_modules/.bin/isparta cover --root src/ ./node_modules/jasmine/bin/jasmine.js",
11+
"test": "TESTING=1 ./node_modules/.bin/istanbul cover ./node_modules/.bin/jasmine",
1212
"prepublish": "npm run build"
1313
},
1414
"keywords": [
@@ -23,21 +23,22 @@
2323
"author": "Parse",
2424
"license": "MIT",
2525
"devDependencies": {
26-
"babel-cli": "^6.6.5",
27-
"babel-core": "^6.7.4",
26+
"babel-cli": "^6.23.0",
27+
"babel-core": "^6.22.0",
2828
"babel-preset-es2015": "^6.6.0",
29-
"babel-preset-stage-0": "^6.5.0",
29+
"babel-preset-stage-0": "^6.22.0",
3030
"codecov": "^1.0.1",
31-
"isparta": "^4.0.0",
32-
"jasmine": "^2.4.1"
31+
"istanbul": "^0.4.5",
32+
"jasmine": "2.5.3",
33+
"jasmine-spec-reporter": "^3.2.0"
3334
},
3435
"dependencies": {
3536
"apn": "^1.7.8",
3637
"node-gcm": "^0.14.0",
3738
"npmlog": "^2.0.3",
3839
"parse": "^1.8.1"
3940
},
40-
"engines": {
41+
"engines": {
4142
"node": ">= 4.6.0"
4243
}
4344
}

spec/helper.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
2+
3+
jasmine.DEFAULT_TIMEOUT_INTERVAL = process.env.PARSE_SERVER_TEST_TIMEOUT || 5000;
4+
5+
jasmine.getEnv().clearReporters();
6+
jasmine.getEnv().addReporter(new SpecReporter());
7+

spec/support/jasmine.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
"spec_dir": "spec",
33
"spec_files": [
44
"*spec.js"
5+
],
6+
"helpers": [
7+
"../node_modules/babel-core/register.js",
8+
"helper.js"
59
]
610
}

0 commit comments

Comments
 (0)