Skip to content

Commit 1f2c614

Browse files
committed
Initial tests
1 parent 6b5cf43 commit 1f2c614

29 files changed

Lines changed: 1341 additions & 574 deletions

.istanbul.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
instrumentation:
2+
root: './src'
3+
include-all-sources: true
4+
reporting:
5+
print: none
6+
dir: ./coverage
7+
watermarks:
8+
statements: [80, 100]
9+
lines: [80, 100]
10+
functions: [80, 100]
11+
branches: [80, 100]
12+
reports:
13+
- json
14+
- text-summary
15+
- html
16+
- lcov
17+
report-config:
18+
json: {file: coverage.json}

package.json

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,21 @@
77
"test": "test"
88
},
99
"scripts": {
10-
"test": "ava --timeout=5s **/*.test.js",
11-
"test:coverage": "nyc --reporter=html --reporter=text-summary --lines=100 --funcions=100 --branches=100 --check-coverage npm test"
10+
"lint": "eslint .",
11+
"test": "eslint . && npm run test:coverage",
12+
"test:unit": "mocha",
13+
"test:coverage": "istanbul cover _mocha"
1214
},
1315
"author": "Tim Oram <mitmaro@gmail.com>",
1416
"license": "ISC",
1517
"devDependencies": {
16-
"ava": "^0.15.2",
18+
"chai": "^3.5.0",
1719
"chalk": "^1.1.3",
1820
"diff": "^2.2.3",
1921
"eslint": "^3.0.0",
20-
"eslint-config-mitmaro": "^1.0.0",
22+
"eslint-config-mitmaro": "^2.0.0",
2123
"eslint-plugin-strict-newline": "^1.0.0",
22-
"nyc": "^6.4.4"
23-
},
24-
"nyc": {
25-
"lines": 100,
26-
"functions": 100,
27-
"branches": 100,
28-
"check-coverage": true,
29-
"report-dir": "./coverage"
24+
"istanbul": "^0.4.4",
25+
"mocha": "^2.5.3"
3026
}
3127
}

0 commit comments

Comments
 (0)