Skip to content

Commit 66dcc71

Browse files
committed
Use mocha to run tests
1 parent 6432438 commit 66dcc71

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

.babelrc

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
11
{
22
"presets": [
33
"es2015",
4-
"stage-0"
4+
"stage-0",
5+
"react"
56
],
67
"plugins": [
78
"add-module-exports"
8-
],
9-
"env": {
10-
"development": {
11-
"plugins": [
12-
"typecheck",
13-
"syntax-flow",
14-
"transform-flow-strip-types"
15-
]
16-
},
17-
"production": {
18-
"plugins": [
19-
"syntax-flow",
20-
"transform-flow-strip-types"
21-
]
22-
}
23-
}
9+
]
2410
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
"devDependencies": {
2929
"babel-cli": "^6.10.1",
3030
"babel-plugin-add-module-exports": "^0.2.1",
31-
"babel-plugin-syntax-flow": "^6.8.0",
32-
"babel-plugin-transform-flow-strip-types": "^6.8.0",
33-
"babel-plugin-typecheck": "^3.9.0",
3431
"babel-preset-es2015": "^6.9.0",
32+
"babel-preset-react": "^6.11.1",
3533
"babel-preset-stage-0": "^6.5.0",
34+
"babel-register": "^6.9.0",
3635
"chai": "^3.5.0",
3736
"jsdom": "^8.1.0",
37+
"mocha": "^2.5.3",
3838
"pragmatist": "^3.0.21",
3939
"react": "^15.0.0-rc.1",
4040
"react-addons-shallow-compare": "^15.0.0-rc.1",
@@ -44,7 +44,7 @@
4444
"scripts": {
4545
"pragmatist": "node ./node_modules/.bin/pragmatist --es5",
4646
"lint": "npm run pragmatist lint",
47-
"test": "npm run pragmatist test --type-annotations",
47+
"test": "mocha --compilers js:babel-register ./tests/**/*.js",
4848
"build": "babel ./src --out-dir ./dist",
4949
"watch": "npm run pragmatist watch",
5050
"watch-lint": "npm run pragmatist watch-lint",

0 commit comments

Comments
 (0)