Skip to content

Commit 5601c48

Browse files
committed
Adding test utilities
This will run mocha for tests and include chai and sinon for tests.
1 parent ea5c5b1 commit 5601c48

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"prelint": "npm run compile",
1111
"lint": "find src test tools -name \"*.ts\" | sed 's/^/--file=/g' | xargs tslint --rules-dir build/tools/rules",
1212
"pretest": "npm run lint",
13-
"test": "echo \"Error: no test specified\" && exit 1"
13+
"test": "mocha --reporter ${MOCHA_REPORTER-nyan} --slow 10 --ui tdd --recursive build/**_test.js"
1414
},
1515
"repository": {
1616
"type": "git",
@@ -26,6 +26,9 @@
2626
},
2727
"homepage": "https://github.com/Asana/typescript-starter",
2828
"devDependencies": {
29+
"chai": "^2.3.0",
30+
"mocha": "^2.2.4",
31+
"sinon": "^1.14.1",
2932
"tsd": "^0.6.0-beta.5",
3033
"tslint": "^2.1.1",
3134
"typescript": "^1.4.1"

tsd.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,18 @@
44
"ref": "master",
55
"path": "typings",
66
"bundle": "typings/tsd.d.ts",
7-
"installed": {}
7+
"installed": {
8+
"chai/chai.d.ts": {
9+
"commit": "846a250e0a6f5e6adf6347ee4ca442a9d1abd8fc"
10+
},
11+
"mocha/mocha.d.ts": {
12+
"commit": "846a250e0a6f5e6adf6347ee4ca442a9d1abd8fc"
13+
},
14+
"node/node.d.ts": {
15+
"commit": "846a250e0a6f5e6adf6347ee4ca442a9d1abd8fc"
16+
},
17+
"sinon/sinon.d.ts": {
18+
"commit": "846a250e0a6f5e6adf6347ee4ca442a9d1abd8fc"
19+
}
20+
}
821
}

0 commit comments

Comments
 (0)