Skip to content

Commit 4324cbb

Browse files
committed
[Tests] add codecov
1 parent c5d2868 commit 4324cbb

File tree

4 files changed

+58
-4
lines changed

4 files changed

+58
-4
lines changed

.nycrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"all": true,
3-
"check-coverage": true,
3+
"check-coverage": false,
44
"instrumentation": false,
55
"sourceMap": false,
6-
"reporter": ["html", "text-summary"],
6+
"reporter": ["text-summary", "text", "html", "json"],
77
"lines": 93,
88
"statements": 93,
99
"functions": 96,

.travis.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,48 @@ import:
66
- ljharb/travis-ci:node/all.yml
77
- ljharb/travis-ci:node/pretest.yml
88
- ljharb/travis-ci:node/posttest.yml
9-
- ljharb/travis-ci:node/coverage.yml
9+
script:
10+
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage && bash <(curl -s https://codecov.io/bash) -f coverage/*.json; fi'
11+
matrix:
12+
include:
13+
- node_js: "13.7"
14+
env: COVERAGE=true
15+
- node_js: "12.14"
16+
env: COVERAGE=true
17+
- node_js: "10.18"
18+
env: COVERAGE=true
19+
- node_js: "8.17"
20+
env: COVERAGE=true
21+
- node_js: "6.17"
22+
env: COVERAGE=true
23+
- node_js: "4.9"
24+
env: COVERAGE=true
25+
- node_js: "iojs-v1.8"
26+
env: COVERAGE=true
27+
- node_js: "0.12"
28+
env: COVERAGE=true
29+
- node_js: "0.10"
30+
env: COVERAGE=true
31+
- node_js: "0.8"
32+
env: COVERAGE=true
33+
exclude:
34+
- node_js: "13.7"
35+
env: TEST=true
36+
- node_js: "12.14"
37+
env: TEST=true
38+
- node_js: "10.18"
39+
env: TEST=true
40+
- node_js: "8.17"
41+
env: TEST=true
42+
- node_js: "6.17"
43+
env: TEST=true
44+
- node_js: "4.9"
45+
env: TEST=true
46+
- node_js: "iojs-v1.8"
47+
env: TEST=true
48+
- node_js: "0.12"
49+
env: TEST=true
50+
- node_js: "0.10"
51+
env: TEST=true
52+
- node_js: "0.8"
53+
env: TEST=true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"devDependencies": {
77
"@ljharb/eslint-config": "^16.0.0",
8-
"core-js": "^2.6.10",
8+
"core-js": "~2.4.1",
99
"eslint": "^6.8.0",
1010
"nyc": "^10.3.2",
1111
"safe-publish-latest": "^1.1.4",

test-core-js.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ test('Maps', function (t) {
1010
t.end();
1111
});
1212

13+
test('WeakMaps', function (t) {
14+
t.equal(inspect(new WeakMap([[{}, 2]])), 'WeakMap { ? }');
15+
t.end();
16+
});
17+
1318
test('Sets', function (t) {
1419
t.equal(inspect(new Set([[1, 2]])), 'Set (1) {[ 1, 2 ]}');
1520
t.end();
1621
});
22+
23+
test('WeakSets', function (t) {
24+
t.equal(inspect(new WeakSet([[1, 2]])), 'WeakSet { ? }');
25+
t.end();
26+
});

0 commit comments

Comments
 (0)